(self, x: VarLenTensor)
| 58 | A LayerNorm layer that converts to float32 before the forward pass. |
| 59 | """ |
| 60 | def forward(self, x: VarLenTensor) -> VarLenTensor: |
| 61 | x_dtype = x.dtype |
| 62 | x = manual_cast(x, torch.float32) |
| 63 | o = super().forward(x) |
| 64 | return manual_cast(o, x_dtype) |
nothing calls this directly
no test coverage detected