(self, dim, eps=1e-6, elementwise_affine=False)
| 98 | class WanLayerNorm(nn.LayerNorm): |
| 99 | |
| 100 | def __init__(self, dim, eps=1e-6, elementwise_affine=False): |
| 101 | super().__init__(dim, elementwise_affine=elementwise_affine, eps=eps) |
| 102 | |
| 103 | def forward(self, inputs: torch.Tensor) -> torch.Tensor: |
| 104 | origin_dtype = inputs.dtype |