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
↓ 5 callers
Method
seek
mlx/io/load.h:145
↓ 5 callers
Method
send
mlx/distributed/jaccl/lib/jaccl/tcp.cpp:137
↓ 5 callers
Method
set_dtype
Set the dtype of the module's parameters. Args: dtype (Dtype): The new dtype. predicate (typing.Callable, optional):
python/mlx/nn/layers/base.py:597
↓ 5 callers
Function
shapes_without_reduction_axes
mlx/backend/common/reduce.cpp:7
↓ 5 callers
Method
store_safe
mlx/backend/metal/kernels/steel/gemm/nax.h:778
↓ 5 callers
Function
tan
mlx/ops.cpp:3013
↓ 5 callers
Function
to_fp8
mlx/ops.cpp:5252
↓ 5 callers
Function
to_scalar
python/src/convert.cpp:161
↓ 5 callers
Function
topk
Returns topk elements of the flattened array. */
mlx/ops.cpp:2674
↓ 5 callers
Function
tree_flatten_with_structure
python/src/trees.cpp:277
↓ 5 callers
Function
tree_map
python/src/trees.cpp:17
↓ 5 callers
Function
tree_unflatten
Recreate a Python tree from its flat representation. .. code-block:: python from mlx.utils import tree_unflatten d = tree_unfla
python/mlx/utils.py:194
↓ 5 callers
Function
unary
mlx/backend/cpu/unary.h:56
↓ 5 callers
Function
zeros
mlx/ops.cpp:330
↓ 4 callers
Method
Device
mlx/backend/cuda/device.cpp:40
↓ 4 callers
Method
__init__
(self, dims: int, eps: float = 1e-5)
python/mlx/nn/layers/normalization.py:134
↓ 4 callers
Method
__init__
(self)
python/tests/test_export_import.py:354
↓ 4 callers
Function
_calculate_fan_in_fan_out
(x)
python/mlx/nn/init.py:128
↓ 4 callers
Function
_get_weight
(ind, grid, dist)
python/mlx/nn/layers/upsample.py:62
↓ 4 callers
Function
add_gather_strides_and_shapes
mlx/backend/metal/quantized.cpp:158
↓ 4 callers
Function
adjust_matrix_offsets
mlx/backend/metal/kernels/fp_quantized_nax.h:454
↓ 4 callers
Function
all_gather
mlx/distributed/ops.cpp:79
↓ 4 callers
Function
all_max
mlx/distributed/ops.cpp:43
↓ 4 callers
Method
all_max
mlx/distributed/mpi/mpi.cpp:404
↓ 4 callers
Function
all_min
mlx/distributed/ops.cpp:61
↓ 4 callers
Method
all_min
mlx/distributed/mpi/mpi.cpp:419
↓ 4 callers
Function
bench
(f, m, v)
benchmarks/python/blas/bench_gemv.py:36
↓ 4 callers
Function
binary_op_gpu_inplace
mlx/backend/metal/binary.cpp:65
↓ 4 callers
Function
bits
mlx/random.cpp:36
↓ 4 callers
Function
bitwise_invert
mlx/ops.cpp:6274
↓ 4 callers
Function
bitwise_or
mlx/ops.cpp:6232
↓ 4 callers
Function
bitwise_xor
mlx/ops.cpp:6239
↓ 4 callers
Function
ceildiv
mlx/backend/metal/kernels/utils.h:307
↓ 4 callers
Method
children
Return the direct descendants of this Module instance.
python/mlx/nn/layers/base.py:290
↓ 4 callers
Method
clear
mlx/backend/metal/kernels/steel/attn/nax.h:566
↓ 4 callers
Method
clear_cache
mlx/backend/cuda/allocator.cpp:380
↓ 4 callers
Function
clear_streams
mlx/scheduler.cpp:27
↓ 4 callers
Method
compute_capability_minor
mlx/backend/cuda/device.h:179
↓ 4 callers
Function
compute_strided_indices
Strided IO for four step FFT
mlx/backend/metal/kernels/fft/readwrite.h:180
↓ 4 callers
Function
contiguous_reduce
mlx/backend/cpu/reduce.cpp:99
↓ 4 callers
Function
conv2d
2D convolution with a filter */
mlx/ops.cpp:4112
↓ 4 callers
Function
conv_general
General convolution with a filter */
mlx/ops.h:1386
↓ 4 callers
Function
conv_general
General convolution with a filter */
mlx/ops.cpp:4256
↓ 4 callers
Method
create_additive_causal_mask
(N: int, dtype: mx.Dtype = mx.float32)
python/mlx/nn/layers/transformer.py:96
↓ 4 callers
Function
cross
mlx/linalg.cpp:430
↓ 4 callers
Function
cummax
mlx/ops.cpp:3934
↓ 4 callers
Function
cummin
mlx/ops.cpp:3964
↓ 4 callers
Function
current_binary_dir
mlx/backend/common/utils.cpp:9
↓ 4 callers
Function
device_count
mlx/device.cpp:39
↓ 4 callers
Method
divide
python/src/array.cpp:55
↓ 4 callers
Method
enqueue
mlx/threadpool.h:60
↓ 4 callers
Function
ensure_row_contiguous
mlx/backend/cuda/quantized/quantized_utils.h:7
↓ 4 callers
Method
float16_t
mlx/distributed/jaccl/lib/jaccl/types.h:39
↓ 4 callers
Function
gather
mlx/ops.cpp:3269
↓ 4 callers
Function
gather_mv
mlx/backend/metal/matmul.cpp:2132
↓ 4 callers
Function
gemm_loop_aligned
mlx/backend/metal/kernels/quantized_utils.h:7
↓ 4 callers
Method
get
mlx/distributed/jaccl/lib/jaccl/tcp.h:15
↓ 4 callers
Function
get_bytes_per_pack
mlx/backend/metal/kernels/fp_quantized_nax.h:26
↓ 4 callers
Function
get_cache_memory
mlx/backend/metal/allocator.cpp:261
↓ 4 callers
Method
get_cache_memory
mlx/backend/cuda/allocator.cpp:370
↓ 4 callers
Function
get_env_var_or_throw
mlx/distributed/nccl/nccl.cpp:440
↓ 4 callers
Function
get_int_index
python/src/indexing.cpp:74
↓ 4 callers
Function
get_qmm_nax_kernel_wrapped
mlx/backend/metal/quantized.cpp:37
↓ 4 callers
Function
get_slice_int
python/src/indexing.cpp:45
↓ 4 callers
Function
gpu_merge_sort
mlx/backend/metal/sort.cpp:274
↓ 4 callers
Function
group_transpose
Transpose from (C_out, H, W, C_in / groups) to (C_in, H, W, C_out / groups).
mlx/backend/cuda/conv.cpp:147
↓ 4 callers
Function
imag
mlx/ops.cpp:6409
↓ 4 callers
Function
indices_or_default
mlx/ops.cpp:61
↓ 4 callers
Method
instantiate
mlx/backend/cuda/utils.cpp:72
↓ 4 callers
Function
is_big_endian
mlx/io/load.cpp:36
↓ 4 callers
Function
is_istream_object
python/src/load.cpp:34
↓ 4 callers
Method
is_module
(value)
python/mlx/nn/layers/base.py:227
↓ 4 callers
Function
isnan
mlx/backend/cpu/simd/accelerate_simd.h:147
↓ 4 callers
Function
kindof
mlx/dtype.cpp:91
↓ 4 callers
Method
lib_name
mlx/primitives.h:657
↓ 4 callers
Function
load_colocated_library
Firstly, search for the metallib in the same path as this binary
mlx/backend/metal/device.cpp:118
↓ 4 callers
Function
load_safe
mlx/backend/metal/kernels/steel/attn/loader.h:25
↓ 4 callers
Method
load_safe
mlx/backend/metal/kernels/gemv_masked.h:105
↓ 4 callers
Method
load_unsafe
mlx/backend/metal/kernels/gemv_masked.h:96
↓ 4 callers
Function
log2
mlx/backend/cpu/simd/base_simd.h:134
↓ 4 callers
Function
make_contiguous_strides
mlx/backend/common/utils.h:34
↓ 4 callers
Function
malloc_with_same_layout
mlx/backend/cuda/scaled_dot_product_attention.cpp:40
↓ 4 callers
Function
meshgrid
mlx/ops.cpp:1145
↓ 4 callers
Function
mlx_atomic_compare_exchange_weak_explicit
mlx/backend/metal/kernels/atomic.h:102
↓ 4 callers
Method
mma
(BM, BK) X (BK, BN) multiply accumulate function */
mlx/backend/metal/kernels/steel/attn/mma.h:533
↓ 4 callers
Function
mod_exp
Rader
mlx/backend/metal/fft.cpp:231
↓ 4 callers
Function
n_active_tasks
mlx/scheduler.h:96
↓ 4 callers
Method
next
mlx/backend/metal/kernels/utils.h:210
↓ 4 callers
Function
next_power_of_2
mlx/utils.h:137
↓ 4 callers
Function
number_of_elements
mlx/ops.cpp:6158
↓ 4 callers
Function
offset_neg_idx
mlx/backend/cpu/indexing.cpp:19
↓ 4 callers
Method
out_of_bounds
mlx/backend/metal/kernels/fft/readwrite.h:256
↓ 4 callers
Function
output_grid_for_col_reduce
mlx/backend/metal/reduce.cpp:233
↓ 4 callers
Function
parse
Parse the comma separated subscripts into a vector of strings. If the output subscripts are missing they are inferred. For example: "ij,jk -> ik" bec
mlx/einsum.cpp:60
↓ 4 callers
Function
partition
* Returns a partitioned copy of the flattened array * such that the smaller kth elements are first. **/
mlx/ops.cpp:2595
↓ 4 callers
Function
plan_stockham_fft
mlx/backend/metal/fft.cpp:89
↓ 4 callers
Method
poll
mlx/distributed/jaccl/lib/jaccl/rdma.h:215
↓ 4 callers
Method
post_recv
mlx/distributed/jaccl/lib/jaccl/rdma.h:197
↓ 4 callers
Method
post_send
mlx/distributed/jaccl/lib/jaccl/rdma.h:177
↓ 4 callers
Function
prepare_slice
mlx/backend/common/slicing.cpp:7
← previous
next →
601–700 of 4,946, ranked by callers