Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/mlx/nn/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def glorot_uniform(
units according to:

.. math::
\sigma = \gamma \sqrt{\frac{6.0}{\text{fan\_in} + \text{fan\_out}}}
\text{limit} = \gamma \sqrt{\frac{6.0}{\text{fan\_in} + \text{fan\_out}}}

For more details see the original reference: `Understanding the difficulty
of training deep feedforward neural networks
Expand Down Expand Up @@ -301,7 +301,7 @@ def he_uniform(

.. math::

\sigma = \gamma \sqrt{\frac{3.0}{\text{fan}}}
\text{limit} = \gamma \sqrt{\frac{3.0}{\text{fan}}}

where :math:`\text{fan}` is either the number of input units when the
``mode`` is ``"fan_in"`` or output units when the ``mode`` is
Expand Down