Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
(channels)
| 200 | |
| 201 | |
| 202 | def normalization(channels): |
| 203 | """ |
| 204 | Make a standard normalization layer. |
| 205 | :param channels: number of input channels. |
| 206 | :return: an nn.Module for normalization. |
| 207 | """ |
| 208 | return GroupNorm32(32, channels) |
| 209 | |
| 210 | |
| 211 | # PyTorch 1.7 has SiLU, but we support PyTorch 1.5. |
no test coverage detected