fv_variations_unit#
- t3toolbox.backend.fv_operations.fv_variations_unit(variation_shapes, index, stack_shape=(), use_jax=False)#
def fv_variations_unit( variation_shapes: VariationShapes, index: typ.Tuple[bool, int, typ.Sequence[int]], # (use_tt_coordinate, i, within_index) stack_shape: typ.Sequence[int] = (), use_jax: bool = False, ) -> Variations:
Canonical unit variation: all-zero cores except a single entry set to 1.
index = (use_tt_coordinate, i, within_index)selects the family (tt ifuse_tt_coordinateelse tucker), the core positioni, and the within-core entry (broadcast over the stack).- Parameters:
variation_shapes (VariationShapes)
index (t3toolbox.backend.common.typ.Tuple[bool, int, t3toolbox.backend.common.typ.Sequence[int]])
stack_shape (t3toolbox.backend.common.typ.Sequence[int])
use_jax (bool)
- Return type:
Variations