mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +08:00
Update normalization.py
This commit is contained in:
parent
2b617b63bd
commit
ad53687ae7
@ -99,7 +99,7 @@ class GroupNorm(Module):
|
|||||||
where :math:`\gamma` and :math:`\beta` are learned per feature dimension
|
where :math:`\gamma` and :math:`\beta` are learned per feature dimension
|
||||||
parameters initialized at 1 and 0 respectively. However, the mean and
|
parameters initialized at 1 and 0 respectively. However, the mean and
|
||||||
variance are computed over the spatial dimensions and each group of
|
variance are computed over the spatial dimensions and each group of
|
||||||
features. In particular, the input is split into num_groups accross the
|
features. In particular, the input is split into num_groups across the
|
||||||
feature dimension.
|
feature dimension.
|
||||||
|
|
||||||
The feature dimension is assumed to be the last dimension and the dimensions
|
The feature dimension is assumed to be the last dimension and the dimensions
|
||||||
|
Loading…
Reference in New Issue
Block a user