class
ReplayCompose
extends
_ContainerReplayCompose(transforms: list[TransformLike], p: float = 1.0)Compose that records applied params for deterministic replay.
After a call, replay_data holds (transform, params, applied)
per child; replay re-applies the same params to a new
sample (e.g. to apply an identical augmentation to a paired input).
Used by 1
Constructors
2Instance methods
1Re-apply a previously recorded replay_data to a new sample.
Walks the saved (transform, params, applied) log in order
and dispatches each Transform with its original
sampled params (no fresh sampling). Raw callables are
re-invoked without parameters. Records marked applied=False
are skipped, preserving the original gate decisions.
Parameters
savedlist of (TransformLike, object, bool)Trace produced by an earlier
__call__; usually
other_compose.replay_data.inputsobjectSample to feed through the replayed pipeline.
Returns
objectThe replayed output, structurally matching inputs.