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!