nip.utils.torch.BatchNorm1dSimulateBatchDims#
- class nip.utils.torch.BatchNorm1dSimulateBatchDims(num_features: int, eps: float = 1e-05, momentum: float | None = 0.1, affine: bool = True, track_running_stats: bool = True, device=None, dtype=None)[source]#
Batch normalization layer with arbitrary batch dimensions.
See
torch.nn.BatchNorm1dfor documentation.Assumes an input of shape (… features).
Methods Summary
forward(x)Apply the module to the input tensor, simulating multiple batch dimensions.
Attributes
T_destinationcall_super_initdump_patchesfeature_dimsnum_featuresepsmomentumaffinetrack_running_statstrainingMethods