mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-26 02:33:21 +08:00
49 lines
590 B
ReStructuredText
49 lines
590 B
ReStructuredText
.. _layers:
|
|
|
|
.. currentmodule:: mlx.nn
|
|
|
|
Layers
|
|
------
|
|
|
|
.. autosummary::
|
|
:toctree: _autosummary
|
|
:template: nn-module-template.rst
|
|
|
|
ALiBi
|
|
AvgPool1d
|
|
AvgPool2d
|
|
BatchNorm
|
|
Conv1d
|
|
Conv2d
|
|
Conv3d
|
|
Dropout
|
|
Dropout2d
|
|
Dropout3d
|
|
Embedding
|
|
GELU
|
|
GroupNorm
|
|
GRU
|
|
InstanceNorm
|
|
LayerNorm
|
|
Linear
|
|
LSTM
|
|
MaxPool1d
|
|
MaxPool2d
|
|
Mish
|
|
MultiHeadAttention
|
|
PReLU
|
|
QuantizedEmbedding
|
|
QuantizedLinear
|
|
RMSNorm
|
|
ReLU
|
|
RNN
|
|
RoPE
|
|
SELU
|
|
Sequential
|
|
SiLU
|
|
SinusoidalPositionalEncoding
|
|
Softshrink
|
|
Step
|
|
Transformer
|
|
Upsample
|