- class composer.algorithms.GhostBatchNorm(ghost_batch_size=32)[source]#
Replaces batch normalization modules with Ghost Batch Normalization modules that simulate the effect of using a smaller batch size.
Works by spliting input into chunks of
ghost_batch_sizesamples and running batch normalization on each chunk separately.
dim=0is assumed to be the sample axis.
ghost_batch_size (int, optional) – size of sub-batches to normalize over. Default: