ut3_absorb_weights#

t3toolbox.uniform_tucker_tensor_train.ut3_absorb_weights(x, weights)#
def ut3_absorb_weights(x: 'UniformTuckerTensorTrain', weights: UT3Weights) -> 'UniformTuckerTensorTrain':

Contract diagonal edge weights into x’s supercores (shape-preserving): the returned UniformTuckerTensorTrain represents the fully-weighted network, with x’s masks unchanged. Uniform twin of t3toolbox.tucker_tensor_train.t3_absorb_weights(); see ut3_absorb_weights() for the side-conventions.

Parameters:
Return type:

UniformTuckerTensorTrain