Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/tuple_manipulation.jl @ 1228:73f262a0a384 refactor/LazyTensors/tuple_manipulation
Add @inline to definition of split_tuple
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 19 Feb 2023 11:41:40 +0100 |
parents | 06b983f0d236 |
children | 8f4259fbd39c |
line wrap: on
line diff
--- a/src/LazyTensors/tuple_manipulation.jl Sat Feb 18 21:56:29 2023 +0100 +++ b/src/LazyTensors/tuple_manipulation.jl Sun Feb 19 11:41:40 2023 +0100 @@ -39,6 +39,7 @@ ``` """ function split_tuple(t, szs) + @inline if length(t) != sum(szs; init=0) throw(ArgumentError("length(t) must equal sum(szs)")) end