Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
(channels)
| 120 | |
| 121 | |
| 122 | def normalization(channels): |
| 123 | """ |
| 124 | Make a standard normalization layer. |
| 125 | :param channels: number of input channels. |
| 126 | :return: an nn.Module for normalization. |
| 127 | """ |
| 128 | return GroupNorm32(32, channels) |
| 129 | |
| 130 | |
| 131 | # PyTorch 1.7 has SiLU, but we support PyTorch 1.5. |
nothing calls this directly
no test coverage detected