Bases: CustomOp
Root Mean Square Layer Normalization for Channel-First or Last
bias instance-attribute
bias = nn.Parameter(torch.zeros(shape)) if bias else None
channel_first instance-attribute
channel_first = channel_first
epsilon instance-attribute
gamma instance-attribute
gamma = nn.Parameter(torch.ones(shape))
gamma_rmsnorm instance-attribute
forward_cuda
forward_cuda(x: Tensor) -> Tensor
forward_hip
forward_hip(x: Tensor) -> Tensor
forward_native
forward_native(x: Tensor) -> Tensor
forward_npu
forward_npu(x: Tensor) -> Tensor