fv_aligned_padded_frame#
- t3toolbox.backend.padded_frames.fv_aligned_padded_frame(old_frame, tucker_ranks, tt_ranks, hint, project, 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 fv_aligned_padded_frame( old_frame: FrameData, # the old frame, stack C (fv_empty_frame for the zero tensor) tucker_ranks: typ.Sequence[int], # len=d, target tt_ranks: typ.Sequence[int], # len=d+1, target (boundary 1) hint: typ.Any, # opaque: handed to `project` unread project: typ.Callable, # project(frame, hint) -> VariationsData: ONE fixed tensor projected at `frame` sharing: typ.Optional[typ.Sequence] = None, # len=d group labels; None = unshared oversampling: int = ALIGN_OVERSAMPLING, # p: working ranks = ranks.oversampled_ranks(shape, target, p, sharing) oversampled_passes: int = ALIGN_OVERSAMPLED_PASSES, # passes at the working ranks before the truncating pass max_passes: int = ALIGN_MAX_PASSES, # passes in all, the truncating pass included; 0 = the hint-free start at the target tol: float = ALIGN_TOL, # early exit on the movement alternate: bool = ALIGN_ALTERNATE, # two-colour passes after the truncating pass seed: int = ZERO_FRAME_SEED, # the start's seed streams use_jit: bool = False, # the old frame to jax, the host loop calling a memoized jitted step; else eager ) -> typ.Tuple[ FrameData, # the aligned padded frame at the target ranks typ.Tuple[NDArray, ...], # movements, one per pass, each shape=C ]:
The aligned padded frame: the hint-free start, then alignment passes against
project(frame, hint).- Parameters:
old_frame (FrameData)
tucker_ranks (t3toolbox.backend.common.typ.Sequence[int])
tt_ranks (t3toolbox.backend.common.typ.Sequence[int])
hint (t3toolbox.backend.common.typ.Any)
project (t3toolbox.backend.common.typ.Callable)
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[FrameData, t3toolbox.backend.common.typ.Tuple[NDArray, …]]