mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 04:24:36 +08:00
bindings for memory info (#761)
* bindings for memory info * update api * keep cache low if requested * fix default * nit in ops error
This commit is contained in:
@@ -64,6 +64,7 @@ are the CPU and GPU.
|
||||
python/transforms
|
||||
python/fft
|
||||
python/linalg
|
||||
python/metal
|
||||
python/nn
|
||||
python/optimizers
|
||||
python/tree_utils
|
||||
|
14
docs/src/python/metal.rst
Normal file
14
docs/src/python/metal.rst
Normal file
@@ -0,0 +1,14 @@
|
||||
Metal
|
||||
=====
|
||||
|
||||
.. currentmodule:: mlx.core.metal
|
||||
|
||||
.. autosummary::
|
||||
:toctree: _autosummary
|
||||
|
||||
is_available
|
||||
get_active_memory
|
||||
get_peak_memory
|
||||
get_cache_memory
|
||||
set_memory_limit
|
||||
set_cache_limit
|
@@ -57,6 +57,7 @@ Operations
|
||||
greater_equal
|
||||
identity
|
||||
inner
|
||||
isclose
|
||||
isnan
|
||||
isposinf
|
||||
isneginf
|
||||
@@ -121,6 +122,7 @@ Operations
|
||||
tan
|
||||
tanh
|
||||
tensordot
|
||||
tile
|
||||
transpose
|
||||
tri
|
||||
tril
|
||||
|
Reference in New Issue
Block a user