LazyBatchNorm1d(eps=1e-05, momentum=0.1, affine=True, track_running_stats=True, device=None, dtype=None)¶
torch.nn.BatchNorm1dmodule with lazy initialization of the
num_featuresargument of the
BatchNorm1dthat is inferred from the
input.size(1). The attributes that will be lazily initialized are weight, bias, running_mean and running_var.
torch.nn.modules.lazy.LazyModuleMixinfor further documentation on lazy modules and their limitations.
eps – a value added to the denominator for numerical stability. Default: 1e-5
momentum – the value used for the running_mean and running_var computation. Can be set to
Nonefor cumulative moving average (i.e. simple average). Default: 0.1
affine – a boolean value that when set to
True, this module has learnable affine parameters. Default:
track_running_stats – a boolean value that when set to
True, this module tracks the running mean and variance, and when set to
False, this module does not track such statistics, and initializes statistics buffers
None. When these buffers are
None, this module always uses batch statistics. in both training and eval modes. Default: