.. _layers:

.. currentmodule:: mlx.nn

Layers
------

.. autosummary::
   :toctree: _autosummary
   :template: nn-module-template.rst

   ALiBi
   AvgPool1d
   AvgPool2d
   BatchNorm
   Conv1d
   Conv2d
   Dropout
   Dropout2d
   Dropout3d
   Embedding
   GELU
   GroupNorm
   InstanceNorm
   LayerNorm
   Linear
   MaxPool1d
   MaxPool2d
   Mish
   MultiHeadAttention
   PReLU
   QuantizedLinear
   RMSNorm
   ReLU
   RoPE
   SELU
   Sequential
   SiLU
   SinusoidalPositionalEncoding
   Softshrink
   Step
   Transformer
   Upsample