t3_absorb_weights#

t3toolbox.tucker_tensor_train.t3_absorb_weights(x, weights)#
def t3_absorb_weights(x: 'TuckerTensorTrain', weights: T3Weights) -> 'TuckerTensorTrain':

Contract diagonal edge weights into x’s cores (shape-preserving): the returned TuckerTensorTrain represents the fully-weighted network. weights must match x’s ranks; its stack must equal x’s or be () (broadcast). See t3toolbox.backend.t3_operations.t3_absorb_weights() for the side-conventions.

Parameters:
Return type:

TuckerTensorTrain