more docs (#421)

* more docs

* fix link

* nits + comments
This commit is contained in:
Awni Hannun
2024-01-10 14:04:12 -08:00
committed by GitHub
parent 3b4f066dac
commit c92a134b0d
6 changed files with 360 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ even though no in-place operations on MLX memory are executed.
PyTorch
-------
.. warning::
PyTorch Support for :obj:`memoryview` is experimental and can break for
multi-dimensional arrays. Casting to NumPy first is advised for now.
PyTorch supports the buffer protocol, but it requires an explicit :obj:`memoryview`.
.. code-block:: python