| 130 | |
| 131 | # PyTorch 1.7 has SiLU, but we support PyTorch 1.5. |
| 132 | class SiLU(nn.Module): |
| 133 | def forward(self, x): |
| 134 | return x * torch.sigmoid(x) |
| 135 | |
| 136 | |
| 137 | class GroupNorm32(nn.GroupNorm): |
nothing calls this directly
no outgoing calls
no test coverage detected