Undesired data type promotion on embed
amilsted opened this issue · 1 comments
amilsted commented
This method of identityoperator()
gets used by embed()
when we do sparse(my_lazytensor)
or dense(my_lazytensor)
, which will promote element types to ComplexF64
.
A fix would be to use the element-type specific method for identityoperator()
in embed. There are a few lines in the various embed methods, but this one is a good example.