UT3Weights.from_t3weights ========================= .. py:method:: t3toolbox.uniform_tucker_tensor_train.UT3Weights.from_t3weights(weights, n = None, r = None) :staticmethod: .. code-block:: python def from_t3weights( weights: 't3.T3Weights', n: Optional[int] = None, # padded Tucker rank (default max rank); pass to match the train's pad r: Optional[int] = None, # padded TT rank (default max rank) ) -> 'UT3Weights': Pack a ragged :py:class:`~t3toolbox.tucker_tensor_train.T3Weights` into a uniform one. Pass ``n``/``r`` to match the padding of the :py:class:`UniformTuckerTensorTrain` these weights will pair with (e.g. ``n=ux.n, r=ux.r``); the defaults pad tightly to the weights' own max rank, which only matches a tightly-padded train.