(self, x)
| 15 | class GELU(nn.Module): |
| 16 | |
| 17 | def forward(self, x): |
| 18 | return 0.5 * x * (1.0 + torch.tanh( |
| 19 | math.sqrt(2.0 / math.pi) * (x + 0.044715 * torch.pow(x, 3.0)))) |
| 20 | |
| 21 | |
| 22 | class T5LayerNorm(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected