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

Function Normalize

sat/vae_modules/cp_enc_dec.py:444–448  ·  view source on GitHub ↗
(in_channels, gather=False, **kwargs)

Source from the content-addressed store, hash-verified

442
443
444def Normalize(in_channels, gather=False, **kwargs): # same for 3D and 2D
445 if gather:
446 return ContextParallelGroupNorm(num_groups=32, num_channels=in_channels, eps=1e-6, affine=True)
447 else:
448 return torch.nn.GroupNorm(num_groups=32, num_channels=in_channels, eps=1e-6, affine=True)
449
450
451class SpatialNorm3D(nn.Module):

Callers 1

__init__Method · 0.70

Calls 1

Tested by

no test coverage detected