Abstract base for a transform parameterized by its sample-params P.
Parameters
pfloat= 1.0Probability of applying the transform; otherwise the input
passes through unchanged.
Used by 4
Constructors
2Wrap fn so it satisfies the nn.Module contract.
Parameters
fncallableThe plain callable the user passed to
compile.
Stored unwrapped; invoked verbatim on every forward.Transform a tensor, a typed target, or a nested sample.