This commit is contained in:
Awni Hannun
2023-12-17 13:23:03 -08:00
committed by CircleCI Docs
parent f75712551d
commit 0250e203f6
319 changed files with 39952 additions and 21579 deletions

View File

@@ -0,0 +1,8 @@
mlx.nn.Conv1d
=============
.. currentmodule:: mlx.nn
.. autoclass:: Conv1d

View File

@@ -0,0 +1,8 @@
mlx.nn.Conv2d
=============
.. currentmodule:: mlx.nn
.. autoclass:: Conv2d

View File

@@ -0,0 +1,8 @@
mlx.nn.Embedding
================
.. currentmodule:: mlx.nn
.. autoclass:: Embedding

View File

@@ -0,0 +1,8 @@
mlx.nn.GELU
===========
.. currentmodule:: mlx.nn
.. autoclass:: GELU

View File

@@ -0,0 +1,8 @@
mlx.nn.GroupNorm
================
.. currentmodule:: mlx.nn
.. autoclass:: GroupNorm

View File

@@ -0,0 +1,8 @@
mlx.nn.LayerNorm
================
.. currentmodule:: mlx.nn
.. autoclass:: LayerNorm

View File

@@ -0,0 +1,8 @@
mlx.nn.Linear
=============
.. currentmodule:: mlx.nn
.. autoclass:: Linear

View File

@@ -0,0 +1,8 @@
mlx.nn.Mish
===========
.. currentmodule:: mlx.nn
.. autoclass:: Mish

View File

@@ -0,0 +1,8 @@
mlx.nn.MultiHeadAttention
=========================
.. currentmodule:: mlx.nn
.. autoclass:: MultiHeadAttention

View File

@@ -0,0 +1,8 @@
mlx.nn.PReLU
============
.. currentmodule:: mlx.nn
.. autoclass:: PReLU

View File

@@ -0,0 +1,8 @@
mlx.nn.RMSNorm
==============
.. currentmodule:: mlx.nn
.. autoclass:: RMSNorm

View File

@@ -0,0 +1,8 @@
mlx.nn.ReLU
===========
.. currentmodule:: mlx.nn
.. autoclass:: ReLU

View File

@@ -0,0 +1,8 @@
mlx.nn.RoPE
===========
.. currentmodule:: mlx.nn
.. autoclass:: RoPE

View File

@@ -0,0 +1,8 @@
mlx.nn.SELU
===========
.. currentmodule:: mlx.nn
.. autoclass:: SELU

View File

@@ -0,0 +1,8 @@
mlx.nn.Sequential
=================
.. currentmodule:: mlx.nn
.. autoclass:: Sequential

View File

@@ -0,0 +1,8 @@
mlx.nn.SiLU
===========
.. currentmodule:: mlx.nn
.. autoclass:: SiLU

View File

@@ -0,0 +1,8 @@
mlx.nn.Step
===========
.. currentmodule:: mlx.nn
.. autoclass:: Step

View File

@@ -0,0 +1,8 @@
mlx.nn.gelu
===========
.. currentmodule:: mlx.nn
.. autoclass:: gelu

View File

@@ -0,0 +1,8 @@
mlx.nn.gelu\_approx
===================
.. currentmodule:: mlx.nn
.. autoclass:: gelu_approx

View File

@@ -0,0 +1,8 @@
mlx.nn.gelu\_fast\_approx
=========================
.. currentmodule:: mlx.nn
.. autoclass:: gelu_fast_approx

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.binary\_cross\_entropy
====================================
.. currentmodule:: mlx.nn.losses
.. autoclass:: binary_cross_entropy

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.cross\_entropy
============================
.. currentmodule:: mlx.nn.losses
.. autoclass:: cross_entropy

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.kl\_div\_loss
===========================
.. currentmodule:: mlx.nn.losses
.. autoclass:: kl_div_loss

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.l1\_loss
======================
.. currentmodule:: mlx.nn.losses
.. autoclass:: l1_loss

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.mse\_loss
=======================
.. currentmodule:: mlx.nn.losses
.. autoclass:: mse_loss

View File

@@ -0,0 +1,8 @@
mlx.nn.losses.nll\_loss
=======================
.. currentmodule:: mlx.nn.losses
.. autoclass:: nll_loss

View File

@@ -0,0 +1,8 @@
mlx.nn.mish
===========
.. currentmodule:: mlx.nn
.. autoclass:: mish

View File

@@ -0,0 +1,8 @@
mlx.nn.prelu
============
.. currentmodule:: mlx.nn
.. autoclass:: prelu

View File

@@ -0,0 +1,8 @@
mlx.nn.relu
===========
.. currentmodule:: mlx.nn
.. autoclass:: relu

View File

@@ -0,0 +1,8 @@
mlx.nn.selu
===========
.. currentmodule:: mlx.nn
.. autoclass:: selu

View File

@@ -0,0 +1,8 @@
mlx.nn.silu
===========
.. currentmodule:: mlx.nn
.. autoclass:: silu

View File

@@ -0,0 +1,8 @@
mlx.nn.step
===========
.. currentmodule:: mlx.nn
.. autoclass:: step

View File

@@ -0,0 +1,23 @@
.. _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
relu
prelu
silu
step
selu
mish

View File

@@ -0,0 +1,28 @@
.. _layers:
.. currentmodule:: mlx.nn
Layers
------
.. autosummary::
:toctree: _autosummary
:template: nn-module-template.rst
Embedding
ReLU
PReLU
GELU
SiLU
Step
SELU
Mish
Linear
Conv1d
Conv2d
LayerNorm
RMSNorm
GroupNorm
RoPE
MultiHeadAttention
Sequential

View File

@@ -0,0 +1,17 @@
.. _losses:
.. currentmodule:: mlx.nn.losses
Loss Functions
--------------
.. autosummary::
:toctree: _autosummary_functions
:template: nn-module-template.rst
cross_entropy
binary_cross_entropy
l1_loss
mse_loss
nll_loss
kl_div_loss

View File

@@ -1,7 +0,0 @@
mlx.nn.Module
=============
.. currentmodule:: mlx.nn
.. autoclass:: Module
:members: