For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
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]]