tltorch.factorized_tensors.init
.tucker_init¶
- tltorch.factorized_tensors.init.tucker_init(tucker_tensor, std=0.02)[source]¶
Initializes directly the weights and factors of a Tucker decomposition so the reconstruction has the specified std and 0 mean
- Parameters:
- tucker_tensorTuckerTensor
- stdfloat, default is 0.02
the desired standard deviation of the full (reconstructed) tensor
Notes
We assume the given (core, factors) form a correct Tucker decomposition, no checks are done here.