Skip to content

Commit

Permalink
Document jax.nn.initializers.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkinsp committed Mar 7, 2022
1 parent 7061521 commit d3d666d
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 53 deletions.
24 changes: 16 additions & 8 deletions docs/jax.nn.initializers.rst
Expand Up @@ -13,17 +13,25 @@ Initializers
This module provides common neural network layer initializers,
consistent with definitions used in Keras and Sonnet.

An initializer is a function that takes three arguments:
``(key, shape, dtype)`` and returns an array with dimensions ``shape`` and
data type ``dtype``. Argument ``key`` is a :class:`jax.random.PRNGKey` random
key used when generating random numbers to initialize the array.

.. autosummary::
:toctree: _autosummary

zeros
constant
delta_orthogonal
glorot_normal
glorot_uniform
he_normal
he_uniform
lecun_normal
lecun_uniform
normal
ones
orthogonal
uniform
normal
variance_scaling
glorot_uniform
glorot_normal
lecun_uniform
lecun_normal
he_uniform
he_normal
zeros

0 comments on commit d3d666d

Please sign in to comment.