diffusion_models.models.nn.normalization

diffusion_models.models.nn.normalization(channels)[source]

Make a standard normalization layer.

Parameters:

channels – number of input channels.

Returns:

an nn.Module for normalization.