mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-22 21:48:08 +08:00
docs update
This commit is contained in:

committed by
CircleCI Docs

parent
f77d99b285
commit
f946f689a6
6
docs/build/html/_sources/python/_autosummary/mlx.core.block_masked_mm.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.block_masked_mm.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.block\_masked\_mm
|
||||
==========================
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
.. autofunction:: block_masked_mm
|
6
docs/build/html/_sources/python/_autosummary/mlx.core.degrees.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.degrees.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.degrees
|
||||
================
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
.. autofunction:: degrees
|
6
docs/build/html/_sources/python/_autosummary/mlx.core.metal.clear_cache.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.metal.clear_cache.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.metal.clear\_cache
|
||||
===========================
|
||||
|
||||
.. currentmodule:: mlx.core.metal
|
||||
|
||||
.. autofunction:: clear_cache
|
6
docs/build/html/_sources/python/_autosummary/mlx.core.not_equal.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.not_equal.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.not\_equal
|
||||
===================
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
.. autofunction:: not_equal
|
6
docs/build/html/_sources/python/_autosummary/mlx.core.radians.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.radians.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.radians
|
||||
================
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
.. autofunction:: radians
|
6
docs/build/html/_sources/python/_autosummary/mlx.core.synchronize.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.core.synchronize.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.core.synchronize
|
||||
====================
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
.. autofunction:: synchronize
|
6
docs/build/html/_sources/python/_autosummary/mlx.nn.quantize.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.nn.quantize.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.nn.quantize
|
||||
===============
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: quantize
|
6
docs/build/html/_sources/python/_autosummary/mlx.utils.tree_map_with_path.rst
vendored
Normal file
6
docs/build/html/_sources/python/_autosummary/mlx.utils.tree_map_with_path.rst
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
mlx.utils.tree\_map\_with\_path
|
||||
===============================
|
||||
|
||||
.. currentmodule:: mlx.utils
|
||||
|
||||
.. autofunction:: tree_map_with_path
|
@@ -16,3 +16,4 @@ Devices and Streams
|
||||
new_stream
|
||||
set_default_stream
|
||||
stream
|
||||
synchronize
|
||||
|
1
docs/build/html/_sources/python/metal.rst
vendored
1
docs/build/html/_sources/python/metal.rst
vendored
@@ -12,5 +12,6 @@ Metal
|
||||
get_cache_memory
|
||||
set_memory_limit
|
||||
set_cache_limit
|
||||
clear_cache
|
||||
start_capture
|
||||
stop_capture
|
||||
|
1
docs/build/html/_sources/python/nn.rst
vendored
1
docs/build/html/_sources/python/nn.rst
vendored
@@ -173,6 +173,7 @@ In detail:
|
||||
:toctree: _autosummary
|
||||
|
||||
value_and_grad
|
||||
quantize
|
||||
|
||||
.. toctree::
|
||||
|
||||
|
@@ -3,4 +3,16 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: ALiBi
|
||||
.. autoclass:: ALiBi
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~ALiBi.create_alibi_matrix
|
||||
~ALiBi.create_alibi_slope
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: AvgPool1d
|
||||
.. autoclass:: AvgPool1d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: AvgPool2d
|
||||
.. autoclass:: AvgPool2d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,15 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: BatchNorm
|
||||
.. autoclass:: BatchNorm
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~BatchNorm.unfreeze
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Conv1d
|
||||
.. autoclass:: Conv1d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Conv2d
|
||||
.. autoclass:: Conv2d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Dropout
|
||||
.. autoclass:: Dropout
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Dropout2d
|
||||
.. autoclass:: Dropout2d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Dropout3d
|
||||
.. autoclass:: Dropout3d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,15 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Embedding
|
||||
.. autoclass:: Embedding
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~Embedding.as_linear
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: GELU
|
||||
.. autoclass:: GELU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: GRU
|
||||
.. autoclass:: GRU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: GroupNorm
|
||||
.. autoclass:: GroupNorm
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: InstanceNorm
|
||||
.. autoclass:: InstanceNorm
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: LSTM
|
||||
.. autoclass:: LSTM
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: LayerNorm
|
||||
.. autoclass:: LayerNorm
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Linear
|
||||
.. autoclass:: Linear
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: MaxPool1d
|
||||
.. autoclass:: MaxPool1d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: MaxPool2d
|
||||
.. autoclass:: MaxPool2d
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Mish
|
||||
.. autoclass:: Mish
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,15 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: MultiHeadAttention
|
||||
.. autoclass:: MultiHeadAttention
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~MultiHeadAttention.create_additive_causal_mask
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: PReLU
|
||||
.. autoclass:: PReLU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
18
docs/build/html/_sources/python/nn/_autosummary/mlx.nn.QuantizedEmbedding.rst
vendored
Normal file
18
docs/build/html/_sources/python/nn/_autosummary/mlx.nn.QuantizedEmbedding.rst
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
mlx.nn.QuantizedEmbedding
|
||||
=========================
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: QuantizedEmbedding
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~QuantizedEmbedding.as_linear
|
||||
~QuantizedEmbedding.from_embedding
|
||||
|
||||
|
@@ -3,4 +3,16 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: QuantizedLinear
|
||||
.. autoclass:: QuantizedLinear
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
~QuantizedLinear.from_linear
|
||||
~QuantizedLinear.unfreeze
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: RMSNorm
|
||||
.. autoclass:: RMSNorm
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: RNN
|
||||
.. autoclass:: RNN
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: ReLU
|
||||
.. autoclass:: ReLU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: RoPE
|
||||
.. autoclass:: RoPE
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: SELU
|
||||
.. autoclass:: SELU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Sequential
|
||||
.. autoclass:: Sequential
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: SiLU
|
||||
.. autoclass:: SiLU
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: SinusoidalPositionalEncoding
|
||||
.. autoclass:: SinusoidalPositionalEncoding
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Softshrink
|
||||
.. autoclass:: Softshrink
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Step
|
||||
.. autoclass:: Step
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Transformer
|
||||
.. autoclass:: Transformer
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,14 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autoclass:: Upsample
|
||||
.. autoclass:: Upsample
|
||||
|
||||
|
||||
|
||||
|
||||
.. rubric:: Methods
|
||||
|
||||
.. autosummary::
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: elu
|
||||
.. autoclass:: elu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: gelu
|
||||
.. autoclass:: gelu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: gelu_approx
|
||||
.. autoclass:: gelu_approx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: gelu_fast_approx
|
||||
.. autoclass:: gelu_fast_approx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: glu
|
||||
.. autoclass:: glu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: hardswish
|
||||
.. autoclass:: hardswish
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: leaky_relu
|
||||
.. autoclass:: leaky_relu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: log_sigmoid
|
||||
.. autoclass:: log_sigmoid
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: log_softmax
|
||||
.. autoclass:: log_softmax
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: binary_cross_entropy
|
||||
.. autoclass:: binary_cross_entropy
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: cosine_similarity_loss
|
||||
.. autoclass:: cosine_similarity_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: cross_entropy
|
||||
.. autoclass:: cross_entropy
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: gaussian_nll_loss
|
||||
.. autoclass:: gaussian_nll_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: hinge_loss
|
||||
.. autoclass:: hinge_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: huber_loss
|
||||
.. autoclass:: huber_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: kl_div_loss
|
||||
.. autoclass:: kl_div_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: l1_loss
|
||||
.. autoclass:: l1_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: log_cosh_loss
|
||||
.. autoclass:: log_cosh_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: margin_ranking_loss
|
||||
.. autoclass:: margin_ranking_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: mse_loss
|
||||
.. autoclass:: mse_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: nll_loss
|
||||
.. autoclass:: nll_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: smooth_l1_loss
|
||||
.. autoclass:: smooth_l1_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn.losses
|
||||
|
||||
.. autofunction:: triplet_loss
|
||||
.. autoclass:: triplet_loss
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: mish
|
||||
.. autoclass:: mish
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: prelu
|
||||
.. autoclass:: prelu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: relu
|
||||
.. autoclass:: relu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: relu6
|
||||
.. autoclass:: relu6
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: selu
|
||||
.. autoclass:: selu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: sigmoid
|
||||
.. autoclass:: sigmoid
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: silu
|
||||
.. autoclass:: silu
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: softmax
|
||||
.. autoclass:: softmax
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: softplus
|
||||
.. autoclass:: softplus
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: softshrink
|
||||
.. autoclass:: softshrink
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: step
|
||||
.. autoclass:: step
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -3,4 +3,9 @@
|
||||
|
||||
.. currentmodule:: mlx.nn
|
||||
|
||||
.. autofunction:: tanh
|
||||
.. autoclass:: tanh
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -31,6 +31,7 @@ Layers
|
||||
Mish
|
||||
MultiHeadAttention
|
||||
PReLU
|
||||
QuantizedEmbedding
|
||||
QuantizedLinear
|
||||
RMSNorm
|
||||
ReLU
|
||||
@@ -43,4 +44,4 @@ Layers
|
||||
Softshrink
|
||||
Step
|
||||
Transformer
|
||||
Upsample
|
||||
Upsample
|
||||
|
4
docs/build/html/_sources/python/ops.rst
vendored
4
docs/build/html/_sources/python/ops.rst
vendored
@@ -29,6 +29,7 @@ Operations
|
||||
atleast_2d
|
||||
atleast_3d
|
||||
broadcast_to
|
||||
block_masked_mm
|
||||
ceil
|
||||
clip
|
||||
concatenate
|
||||
@@ -42,6 +43,7 @@ Operations
|
||||
cummin
|
||||
cumprod
|
||||
cumsum
|
||||
degrees
|
||||
dequantize
|
||||
diag
|
||||
diagonal
|
||||
@@ -90,6 +92,7 @@ Operations
|
||||
moveaxis
|
||||
multiply
|
||||
negative
|
||||
not_equal
|
||||
ones
|
||||
ones_like
|
||||
outer
|
||||
@@ -98,6 +101,7 @@ Operations
|
||||
prod
|
||||
quantize
|
||||
quantized_matmul
|
||||
radians
|
||||
reciprocal
|
||||
repeat
|
||||
reshape
|
||||
|
@@ -19,3 +19,4 @@ return python trees will be using the default python ``dict``, ``list`` and
|
||||
tree_flatten
|
||||
tree_unflatten
|
||||
tree_map
|
||||
tree_map_with_path
|
||||
|
Reference in New Issue
Block a user