updated the batch norm doc string ^^

This commit is contained in:
m0saan 2023-12-23 23:08:10 +01:00
parent c68a472b83
commit cf5a5a4a01

View File

@ -196,6 +196,9 @@ class BatchNorm(Module):
[1]: https://arxiv.org/abs/1502.03167
The input tensor shape is specified as (N, C) or (N, C, L), representing the batch size (N), the number of features or channels (C), and optionally, the sequence length (L). The output tensor maintains the same shape as the input, adhering to (N, C) or (N, C, L).
For three-dimensional tensors, the shape is denoted as (N, C, H, W), where N signifies the batch size, C represents the number of channels, H corresponds to the height, and W denotes the width.
Args:
num_features (int): The feature dimension of the input to normalize over.
eps (float, optional): A small additive constant for numerical stability. Default is 1e-5.