NewtonTiming#

class t3toolbox.backend.optimizers.NewtonTiming#

NewtonInfo.timing: one history row’s times, set by newton_cg(timing=True) (else None).

window is the row’s wall_time window, the same float on a step row; the converged row, which has no wall_time, gets one too. seconds splits it by phase (PhaseSeconds); compile_seconds gives jax’s compile wait inside each phase (None on a numpy run, and on a jax whose jax.monitoring cannot unregister a listener). trials counts the retractions tried (None on the converged row) and accepted_retraction is the accepted trial’s share of trial_retraction (None when none was accepted).

Row 0 also carries the run’s one-offs (None on later rows): setup (the entry to the loop, the alignment excluded), alignment (padded_from’s padded start) and their compile twins; alignment_passes and reference_passes, the seconds per pass of the alignment and of the 'cone' reference’s loop, breakdowns of alignment and of seconds.reference (None when the geometry member cannot report them, e.g. under the uniform whole-loop jit).

window: float#
seconds: PhaseSeconds#
compile_seconds: t3toolbox.backend.common.typ.Optional[PhaseSeconds]#
trials: t3toolbox.backend.common.typ.Optional[int]#
accepted_retraction: t3toolbox.backend.common.typ.Optional[float]#
setup: t3toolbox.backend.common.typ.Optional[float] = None#
setup_compile: t3toolbox.backend.common.typ.Optional[float] = None#
alignment: t3toolbox.backend.common.typ.Optional[float] = None#
alignment_compile: t3toolbox.backend.common.typ.Optional[float] = None#
alignment_passes: t3toolbox.backend.common.typ.Optional[t3toolbox.backend.common.typ.Tuple[float, ...]] = None#
reference_passes: t3toolbox.backend.common.typ.Optional[t3toolbox.backend.common.typ.Tuple[float, ...]] = None#