mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-26 02:33:21 +08:00
25 lines
358 B
ReStructuredText
25 lines
358 B
ReStructuredText
.. _nn_functions:
|
|
|
|
.. currentmodule:: mlx.nn
|
|
|
|
Functions
|
|
---------
|
|
|
|
Layers without parameters (e.g. activation functions) are also provided as
|
|
simple functions.
|
|
|
|
.. autosummary::
|
|
:toctree: _autosummary_functions
|
|
:template: nn-module-template.rst
|
|
|
|
gelu
|
|
gelu_approx
|
|
gelu_fast_approx
|
|
mish
|
|
prelu
|
|
relu
|
|
selu
|
|
softshrink
|
|
silu
|
|
step
|