Everything I needed for TT and Tucker decompositions almost worked already when I changed the default dtype to float32 after importing tntorch. Tucker had some problems because numpy would give float64 as output to a sqrt when calling truncated_svd. This fixes that problem, and shouldn't affect float64.
Everything I needed for TT and Tucker decompositions almost worked already when I changed the default dtype to float32 after importing
tntorch
. Tucker had some problems because numpy would give float64 as output to a sqrt when callingtruncated_svd
. This fixes that problem, and shouldn't affectfloat64
.