tltorch.factorized_tensors.init.tt_init

tltorch.factorized_tensors.init.tt_init(tt_tensor, std=0.02)[source]

Initializes directly the weights and factors of a TT decomposition so the reconstruction has the specified std and 0 mean

Parameters:
tt_tensorTTTensor
stdfloat, default is 0.02

the desired standard deviation of the full (reconstructed) tensor

Notes

We assume the given factors form a correct TT decomposition, no checks are done here.