mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +08:00
updated the batch norm doc string ^^
This commit is contained in:
parent
c68a472b83
commit
cf5a5a4a01
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user