MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / Normalize

Function Normalize

sat/sgm/modules/cp_enc_dec.py:343–347  ·  view source on GitHub ↗
(in_channels, gather=False, **kwargs)

Source from the content-addressed store, hash-verified

341
342
343def Normalize(in_channels, gather=False, **kwargs): # same for 3D and 2D
344 if gather:
345 return ContextParallelGroupNorm(num_groups=32, num_channels=in_channels, eps=1e-6, affine=True)
346 else:
347 return torch.nn.GroupNorm(num_groups=32, num_channels=in_channels, eps=1e-6, affine=True)
348
349
350class SpatialNorm3D(nn.Module):

Callers 1

__init__Method · 0.70

Calls 1

Tested by

no test coverage detected