Mercurial > repos > public > sbplib_julia
changeset 482:f0f272666a64 feature/compose_identity_mappings
Fix some errors in SizeMismatch exception
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Nov 2020 10:28:07 +0100 |
parents | 2fde16253a84 |
children | d5032c58c67a |
files | src/LazyTensors/lazy_tensor_operations.jl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Thu Nov 05 10:25:30 2020 +0100 +++ b/src/LazyTensors/lazy_tensor_operations.jl Thu Nov 05 10:28:07 2020 +0100 @@ -100,12 +100,12 @@ struct SizeMismatch <: Exception tm::TensorMapping - sz::NTuple{N,Int} + sz end function showerror(io::IO, err::SizeMismatch) print(io, "SizeMismatch: ") - print(io, "attempt to apply TensorMapping with domain size $(domain_size(tm)) to a domain of size $sz") + print(io, "attempt to apply TensorMapping with domain size $(domain_size(err.tm)) to a domain of size $(err.sz)") end