(self, normalized_shape, eps=1e-05, elementwise_affine=True)
| 58 | |
| 59 | class LPLayerNorm(torch.nn.LayerNorm): |
| 60 | def __init__(self, normalized_shape, eps=1e-05, elementwise_affine=True): |
| 61 | super().__init__( |
| 62 | normalized_shape=normalized_shape, |
| 63 | eps=eps, |
| 64 | elementwise_affine=elementwise_affine, |
| 65 | ) |
| 66 | |
| 67 | def forward(self, x): |
| 68 | module_device = x.device |