(self, inputs)
| 60 | |
| 61 | class FP32_SiLU(torch.nn.SiLU): |
| 62 | def forward(self, inputs): |
| 63 | origin_dtype = inputs.dtype |
| 64 | return torch.nn.functional.silu(inputs.float(), inplace=False).to(origin_dtype) |
| 65 | |
| 66 | |
| 67 | class HunyuanDiTFinalLayer(torch.nn.Module): |