unconditioned_norm
unconditioned_norm
¶
Wrapper that adapts plain norms to the conditioned normalization interface.
UnconditionedNorm
¶
Bases: Module
Wraps a plain norm (LayerNorm, RMSNorm) to return (normed, gate).
Ignores the conditioning argument and returns gate = ones(1). This allows transformer blocks to call all normalizations uniformly.
Source code in src/versatil/models/layers/normalization/unconditioned_norm.py
forward
¶
Normalize the input and return it with a unit gate, ignoring the condition.