Python class
ConstantLayerNorm
ConstantLayerNormβ
class max.nn.ConstantLayerNorm(dims, device, dtype, eps=1e-05)
Bases: Module
Layer normalization block with constant gamma and beta values.
When called, ConstantLayerNorm accepts a TensorValue and returns a
normalized TensorValue of the same shape.
betaβ
beta: npt.NDArray[np.floating[Any]]
deviceβ
device: DeviceRef
dtypeβ
dtype: DType
epsβ
eps: float = 1e-05
gammaβ
gamma: npt.NDArray[np.floating[Any]]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!