MCPcopy Create free account
hub / github.com/Vchitect/SEINE / normalization

Function normalization

models/utils.py:122–128  ·  view source on GitHub ↗

Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.

(channels)

Source from the content-addressed store, hash-verified

120
121
122def 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.

Callers

nothing calls this directly

Calls 1

GroupNorm32Class · 0.85

Tested by

no test coverage detected