ut3_conversions#

Ragged <-> uniform <-> dense conversions of plain T3 data.

t3_to_ut3/ut3_to_t3/ut3_to_dense – the seam the uniform equivalence contract is stated through: to_uniform -> op -> to_ragged == op_ragged on real parts, garbage don’t-care (docs/uniform_equivalence_contract.md). t3weights_to_ut3weights / ut3weights_to_t3weights are the same seam for the weighted layer, and are how every uniform weight op is tested against its ragged twin.

Functions#

t3_to_ut3(x[, N, n, r, squash_tails])

Convert a (ragged) TuckerTensorTrain core pair to uniform supercores + shape + masks (nested .data).

ut3_to_dense(x)

Form the dense tensor from a uniform Tucker tensor train: mask the supercores, chain-contract

ut3_to_t3(x)

Convert uniform supercores + masks back to ragged TuckerTensorTrain core pairs.

t3weights_to_ut3weights(weights[, n, r])

Pack a ragged T3Weights core pair into uniform weight supercores + masks (the .data layout).

ut3weights_to_t3weights(weights)

Convert uniform weight supercores + masks back to ragged T3Weights core pairs.