MCPcopy Create free account
hub / github.com/Sense-GVT/DeCLIP / NormLayer

Function NormLayer

prototype/utils/misc.py:141–143  ·  view source on GitHub ↗
(num_channels, *args, **kwargs)

Source from the content-addressed store, hash-verified

139def get_norm_layer(config):
140 if config.type == 'GroupNorm':
141 def NormLayer(num_channels, *args, **kwargs):
142 return torch.nn.GroupNorm(
143 num_channels=num_channels, *args, **kwargs, **config.kwargs)
144 else:
145 assert False
146 return NormLayer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected