function similar_from_structure(A, T, structure)
if isbits(T)
similar(A, T, structure)
else
fill!(similar(A, T, structure), zero(T)) # this fixes BigFloat issues
end
end
T is a Type, isbits(T::Type) always return false. Maybe isbitstype should be used?
In tensorcache.jl around line 9
T
is aType
,isbits(T::Type)
always returnfalse
. Maybeisbitstype
should be used?