Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ functions
Functions
4,946 in github.com/ml-explore/mlx
⨍
Functions
4,946
◇
Types & classes
770
↳
Endpoints
5
↓ 2,145 callers
Function
array
mlx/array.h:84
↓ 1,866 callers
Method
array
mlx/array.h:533
↓ 1,040 callers
Method
size
mlx/dtype.h:60
↓ 642 callers
Function
array_equal
mlx/ops.h:494
↓ 613 callers
Method
push_back
mlx/small_vector.h:332
↓ 477 callers
Method
size
mlx/backend/cuda/allocator.cpp:293
↓ 367 callers
Method
item
mlx/array.h:566
↓ 290 callers
Method
end
mlx/small_vector.h:247
↓ 273 callers
Method
size
mlx/backend/metal/allocator.cpp:192
↓ 269 callers
Function
reshape
mlx/ops.cpp:392
↓ 266 callers
Method
begin
mlx/small_vector.h:240
↓ 235 callers
Function
astype
mlx/ops.cpp:258
↓ 228 callers
Function
min
mlx/backend/cpu/simd/neon_fp16_simd.h:189
↓ 228 callers
Function
ones
mlx/ops.h:96
↓ 225 callers
Method
set_input_array
mlx/backend/metal/device.cpp:300
↓ 225 callers
Function
to_stream
mlx/utils.cpp:15
↓ 222 callers
Function
issubdtype
mlx/dtype.cpp:180
↓ 212 callers
Method
append
mlx/backend/cuda/jit_module.h:33
↓ 191 callers
Function
arange
mlx/ops.cpp:150
↓ 188 callers
Function
multiply
mlx/ops.cpp:2865
↓ 187 callers
Method
set_data
mlx/array.cpp:168
↓ 179 callers
Function
malloc
mlx/allocator.h:54
↓ 175 callers
Function
zeros
mlx/ops.h:89
↓ 172 callers
Function
slice
mlx/ops.h:181
↓ 169 callers
Method
insert
mlx/export.cpp:558
↓ 167 callers
Function
eval
mlx/transforms.h:22
↓ 158 callers
Method
end
mlx/backend/cuda/lru_cache.h:63
↓ 158 callers
Method
set_input_array
mlx/backend/cuda/device.cpp:224
↓ 151 callers
Method
max
mlx/types/limits.h:33
↓ 146 callers
Function
full
mlx/ops.h:67
↓ 145 callers
Method
eval
mlx/array.cpp:154
↓ 139 callers
Method
begin
mlx/backend/cuda/lru_cache.h:57
↓ 139 callers
Method
vmap
mlx/fast.cpp:45
↓ 136 callers
Method
eval
Set the model to evaluation mode. See :func:`train`.
python/mlx/nn/layers/base.py:590
↓ 131 callers
Function
sum
mlx/ops.h:591
↓ 131 callers
Function
vjp
mlx/transforms.cpp:347
↓ 128 callers
Function
allclose
mlx/ops.cpp:1925
↓ 126 callers
Function
to_array
python/src/utils.cpp:8
↓ 119 callers
Function
transpose
mlx/ops.h:346
↓ 108 callers
Function
abs
mlx/ops.cpp:2770
↓ 106 callers
Method
get_kernel
mlx/backend/metal/device.cpp:768
↓ 106 callers
Function
get_type_string
mlx/backend/common/compiled.cpp:47
↓ 105 callers
Function
add
mlx/ops.cpp:2836
↓ 105 callers
Method
get
mlx/distributed/utils.h:15
↓ 105 callers
Method
set_output_array
mlx/backend/cuda/device.cpp:233
↓ 103 callers
Function
get_template_definition
mlx/backend/metal/kernels.h:378
↓ 102 callers
Method
set_output_array
mlx/backend/metal/device.cpp:314
↓ 99 callers
Function
type_to_name
mlx/backend/metal/utils.cpp:8
↓ 98 callers
Method
emplace_back
mlx/small_vector.h:323
↓ 98 callers
Function
vmap
mlx/transforms.cpp:900
↓ 97 callers
Function
broadcast_to
mlx/ops.cpp:1601
↓ 96 callers
Method
find
mlx/export.cpp:655
↓ 94 callers
Function
expand_dims
mlx/ops.cpp:612
↓ 94 callers
Method
split
mlx/distributed/distributed.cpp:137
↓ 93 callers
Function
max
Reductions
mlx/backend/cpu/simd/neon_fp16_simd.h:182
↓ 93 callers
Method
value
mlx/event.h:34
↓ 90 callers
Function
PM
mlx/3rdparty/pocketfft.h:273
↓ 90 callers
Method
copy_shared_buffer
mlx/array.cpp:191
↓ 90 callers
Function
uniform
mlx/random.h:73
↓ 88 callers
Function
matmul
mlx/ops.cpp:3192
↓ 85 callers
Function
concatenate
mlx/backend/metal/utils.h:54
↓ 84 callers
Method
empty
mlx/compile.cpp:378
↓ 83 callers
Function
fma
mlx/backend/cpu/simd/neon_fp16_simd.h:171
↓ 83 callers
Function
norm
mlx/linalg.h:32
↓ 81 callers
Method
vjp
mlx/fast.cpp:13
↓ 78 callers
Method
add
python/src/array.cpp:43
↓ 72 callers
Method
seed
python/src/random.cpp:32
↓ 71 callers
Method
synchronize
mlx/backend/cuda/device.cpp:538
↓ 70 callers
Method
data
mlx/3rdparty/pocketfft.h:226
↓ 70 callers
Function
exp
mlx/ops.cpp:2988
↓ 70 callers
Function
jvp
mlx/transforms.cpp:543
↓ 70 callers
Method
mean
(x)
python/tests/test_compile.py:701
↓ 69 callers
Function
f
(x)
python/mlx/nn/layers/distributed.py:20
↓ 69 callers
Method
find
mlx/backend/cuda/lru_cache.h:75
↓ 69 callers
Function
max
mlx/ops.h:709
↓ 68 callers
Method
insert
mlx/backend/metal/resident.cpp:28
↓ 66 callers
Method
assertEqualArray
( self, mx_res: mx.array, expected: mx.array, atol=1e-2, rtol=1e-2,
python/tests/mlx_tests.py:100
↓ 65 callers
Function
all
mlx/ops.h:526
↓ 65 callers
Method
reserve
mlx/small_vector.h:431
↓ 65 callers
Function
zeros_like
mlx/ops.cpp:334
↓ 64 callers
Method
rank
mlx/distributed/distributed.cpp:129
↓ 61 callers
Function
time_fn
(fn, *args, **kwargs)
benchmarks/python/time_utils.py:8
↓ 59 callers
Function
isnan
mlx/backend/cpu/simd/base_simd.h:158
↓ 58 callers
Function
compile
mlx/compile.h:26
↓ 58 callers
Method
empty
mlx/backend/cuda/lru_cache.h:48
↓ 58 callers
Function
squeeze
mlx/ops.cpp:557
↓ 57 callers
Method
dispatch_threads
mlx/backend/metal/device.cpp:364
↓ 57 callers
Function
divide
mlx/ops.cpp:2881
↓ 56 callers
Method
check_mx_np
(self, op_mx, op_np, a_np, atol=1e-5, rtol=1e-6, **kwargs)
python/tests/test_fft.py:19
↓ 56 callers
Function
flatten
mlx/ops.cpp:457
↓ 55 callers
Method
mma
(BM, BK) X (BK, BN) multiply accumulate function */
mlx/backend/metal/kernels/steel/gemm/mma.h:508
↓ 54 callers
Function
subtract
mlx/ops.cpp:2849
↓ 52 callers
Method
add_temporary
mlx/backend/cuda/device.h:103
↓ 51 callers
Method
is_available
mlx/array.cpp:131
↓ 51 callers
Method
quantize
(w, transpose=True, group_size=None, bits=None, mode="affine")
python/tests/test_quantized.py:757
↓ 50 callers
Function
sqrt
mlx/ops.cpp:3792
↓ 49 callers
Function
elem_to_loc
mlx/backend/common/utils.h:16
↓ 48 callers
Method
init
Initialize the optimizer's state This function can be used to initialize optimizers which have state (like momentum in :class:`SGD`).
python/mlx/optimizers/optimizers.py:31
↓ 48 callers
Method
parameters
Recursively return all the :class:`mlx.core.array` members of this Module as a dict of dicts and lists.
python/mlx/nn/layers/base.py:280
↓ 48 callers
Function
take
mlx/ops.cpp:3385
next →
1–100 of 4,946, ranked by callers