ufv_aligned_padded_frame#
- t3toolbox.backend.uniform_padded_frames.ufv_aligned_padded_frame(old_frame_data, tucker_ranks, tt_ranks, hint, project, level_widths, sharing=None, oversampling=ALIGN_OVERSAMPLING, oversampled_passes=ALIGN_OVERSAMPLED_PASSES, max_passes=ALIGN_MAX_PASSES, tol=ALIGN_TOL, alternate=ALIGN_ALTERNATE, seed=ZERO_FRAME_SEED, use_jit=False)#
def ufv_aligned_padded_frame( old_frame_data: UFrameData, # the old frame, stack C (ufv_empty_frame for the zero tensor) tucker_ranks: typ.Union[typ.Sequence[int], NDArray], # len=d or HOST int (d,)+C, target tt_ranks: typ.Union[typ.Sequence[int], NDArray], # len=d+1 or HOST int (d+1,)+C, target hint: typ.Any, # opaque: handed to `project` unread project: typ.Callable, # project(frame_data, hint) -> UVariationsData (or the bare (V, H) pair); traceable and module-level under use_jit level_widths: typ.Tuple[int, int, int, int], # (WD, WU, WL, WR): the compaction widths (the level's frame) sharing: typ.Optional[typ.Sequence] = None, # len=d group labels; None = unshared oversampling: int = ALIGN_OVERSAMPLING, # as fv_aligned_padded_frame (constants from padded_frames) oversampled_passes: int = ALIGN_OVERSAMPLED_PASSES, max_passes: int = ALIGN_MAX_PASSES, # static under use_jit (the movements' length) tol: float = ALIGN_TOL, # traced under use_jit alternate: bool = ALIGN_ALTERNATE, seed: int = ZERO_FRAME_SEED, use_jit: bool = False, # the WHOLE loop as one jax.jit; else a host loop, eager kernel ) -> typ.Tuple[ UFrameData, # the aligned frame compacted to level_widths, prefix masks NDArray, # movements, shape=(max_passes,)+C, NaN after the last pass (both modes) ]:
The aligned padded frame in block layout, compacted to
level_widths: the uniform twin offv_aligned_padded_frame.- Parameters:
old_frame_data (UFrameData)
tucker_ranks (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[int], NDArray])
tt_ranks (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[int], NDArray])
hint (t3toolbox.backend.common.typ.Any)
project (t3toolbox.backend.common.typ.Callable)
level_widths (t3toolbox.backend.common.typ.Tuple[int, int, int, int])
sharing (t3toolbox.backend.common.typ.Optional[t3toolbox.backend.common.typ.Sequence])
oversampling (int)
oversampled_passes (int)
max_passes (int)
tol (float)
alternate (bool)
seed (int)
use_jit (bool)
- Return type:
t3toolbox.backend.common.typ.Tuple[UFrameData, NDArray]