MCPcopy Create free account

hub / github.com/ml-explore/mlx / functions

Functions4,946 in github.com/ml-explore/mlx

↓ 9 callersFunctionremap_reduce_types
mlx/backend/metal/reduce.cpp:245
↓ 9 callersMethodrend
mlx/small_vector.h:269
↓ 9 callersMethodresize
mlx/3rdparty/pocketfft.h:215
↓ 9 callersFunctionrms_norm
(x, weight, eps)
python/tests/test_fast.py:51
↓ 9 callersFunctionsend
mlx/distributed/ops.cpp:103
↓ 9 callersFunctionset_default_device
mlx/device.cpp:20
↓ 9 callersFunctionset_unary_output_data
mlx/backend/common/unary.h:10
↓ 9 callersFunctionsolve
mlx/linalg.cpp:682
↓ 9 callersFunctionsort
Returns a sorted copy of the flattened array. */
mlx/ops.cpp:2550
↓ 9 callersFunctionsum
mlx/ops.cpp:2044
↓ 8 callersFunctionPMINPLACE
mlx/3rdparty/pocketfft.h:275
↓ 8 callersMethod__gemv_test
( self, shape_mat, shape_vec, np_dtype=np.float32, mat_first=True,
python/tests/test_blas.py:262
↓ 8 callersMethod_maybe_schedule
To be used by derived classes to optionally put a parameter on a schedule.
python/mlx/optimizers/optimizers.py:143
↓ 8 callersFunctionbuffer_size_from_message
mlx/distributed/jaccl/lib/jaccl/rdma.h:34
↓ 8 callersMethodcbegin
mlx/small_vector.h:254
↓ 8 callersFunctionclamp
mlx/backend/cpu/simd/neon_fp16_simd.h:165
↓ 8 callersFunctioncompute_reduce_shape
mlx/ops.cpp:25
↓ 8 callersFunctiondtype_to_cudnn_type
Map dtype to cudnn data type.
mlx/backend/cuda/cudnn_utils.h:54
↓ 8 callersFunctioneinsum_path
mlx/einsum.cpp:829
↓ 8 callersFunctionensure_contiguous
mlx/backend/cuda/quantized/quantized_utils.h:40
↓ 8 callersFunctionensure_row_contiguous
mlx/backend/cpu/quantized.cpp:18
↓ 8 callersMethodexec
mlx/3rdparty/pocketfft.h:1471
↓ 8 callersMethodexit
python/src/stream.cpp:32
↓ 8 callersFunctiongemm
mlx/backend/metal/kernels/steel/gemm/kernels/steel_gemm_fused.h:29
↓ 8 callersMethodget_kernel
mlx/backend/cuda/jit_module.cpp:437
↓ 8 callersFunctionifftshift
mlx/fft.cpp:268
↓ 8 callersMethodis_open
mlx/io/load.h:133
↓ 8 callersMethodload
mlx/backend/metal/kernels/fft/readwrite.h:263
↓ 8 callersFunctionload_safetensors
Load array from reader in safetensor format */
mlx/io/safetensors.cpp:108
↓ 8 callersMethodload_unsafe
mlx/backend/metal/kernels/steel/conv/loaders/loader_channel_l.h:411
↓ 8 callersFunctionlog_info
mlx/distributed/ring/ring.cpp:115
↓ 8 callersFunctionmeasure_runtime
(fn, **kwargs)
benchmarks/python/time_utils.py:29
↓ 8 callersFunctionpoll
mlx/distributed/jaccl/lib/jaccl/rdma.h:223
↓ 8 callersFunctionreciprocal
mlx/ops.cpp:2831
↓ 8 callersFunctionrecv
mlx/distributed/ops.cpp:126
↓ 8 callersFunctionsimd_shuffle_and_fill_up
mlx/backend/metal/kernels/utils.h:393
↓ 8 callersFunctionsinh
mlx/ops.cpp:3048
↓ 8 callersMethodsize
mlx/small_vector.h:276
↓ 8 callersFunctionslice
mlx/ops.cpp:751
↓ 8 callersFunctionsum
mlx/backend/cpu/simd/neon_fp16_simd.h:196
↓ 8 callersFunctiontest_arg_reduce_against_cpu
tests/arg_reduce_tests.cpp:27
↓ 8 callersMethodtrainable_parameters
Recursively return all the non frozen :class:`mlx.core.array` members of this Module as a dict of dicts and lists.
python/mlx/nn/layers/base.py:285
↓ 8 callersFunctiontree_unflatten
python/src/trees.cpp:251
↓ 8 callersMethodupdate_modules
Replace the child modules of this :class:`Module` instance with the provided ones in the dict of dicts and lists. It is the equivalen
python/mlx/nn/layers/base.py:389
↓ 8 callersMethodval
mlx/dtype.h:57
↓ 7 callersMethodSet
mlx/3rdparty/pocketfft.h:236
↓ 7 callersMethod__init__
(self, axis: int = -1)
python/mlx/nn/layers/activations.py:351
↓ 7 callersMethodapply
mlx/backend/metal/kernels/steel/attn/transforms.h:29
↓ 7 callersMethodapply_to_modules
Apply a function to all the modules in this instance (including this instance). Args: apply_fn (Callable): The function t
python/mlx/nn/layers/base.py:412
↓ 7 callersFunctionarray_from_list
python/src/convert.cpp:452
↓ 7 callersFunctionbitwise_and
mlx/ops.cpp:6225
↓ 7 callersFunctionbuild_kernel
mlx/backend/metal/compiled.cpp:16
↓ 7 callersMethodcend
mlx/small_vector.h:258
↓ 7 callersFunctioncholesky
mlx/linalg.cpp:330
↓ 7 callersFunctioncommunication_stream
mlx/distributed/distributed.cpp:17
↓ 7 callersFunctioncontiguous_copy_cpu
mlx/backend/cpu/copy.cpp:380
↓ 7 callersFunctioncopy_gpu_inplace
mlx/backend/metal/copy.cpp:26
↓ 7 callersMethoddatatype
mlx/distributed/mpi/mpi.cpp:205
↓ 7 callersFunctiondegrees
mlx/ops.cpp:3087
↓ 7 callersFunctioneigh
mlx/linalg.cpp:535
↓ 7 callersMethodend
mlx/distributed/jaccl/lib/jaccl/rdma.h:137
↓ 7 callersFunctionensure_row_contiguous
mlx/backend/metal/conv.cpp:23
↓ 7 callersFunctionfsdp_apply_gradients
Perform a distributed optimizer step by sharding gradients and optimizer states across ranks. This helper function performs the following steps:
python/mlx/nn/utils.py:186
↓ 7 callersFunctionfull
mlx/ops.cpp:305
↓ 7 callersFunctionget_slice_params
python/src/indexing.cpp:55
↓ 7 callersFunctionget_temp_file
tests/export_import_tests.cpp:15
↓ 7 callersMethodgood
mlx/io/load.h:137
↓ 7 callersFunctionirfft
Compute the one-dimensional inverse of `rfft`. */
mlx/fft.h:166
↓ 7 callersFunctionis_nax_available
mlx/backend/metal/device.cpp:828
↓ 7 callersFunctionload
Load array from reader in .npy format */
mlx/io/load.cpp:229
↓ 7 callersMethodload_unsafe
Load from device memory into threadgroup memory - without bound checking */
mlx/backend/metal/kernels/steel/attn/loader.h:74
↓ 7 callersMethodlocation
mlx/backend/metal/kernels/utils.h:246
↓ 7 callersFunctionmlx_compute_scatter_args
python/src/indexing.cpp:767
↓ 7 callersFunctionmlx_compute_slice_update_args
python/src/indexing.cpp:791
↓ 7 callersFunctionmultivariate_normal
mlx/random.cpp:206
↓ 7 callersFunctionradians
mlx/ops.cpp:3092
↓ 7 callersFunctionrandint
()
benchmarks/python/compile_bench.py:28
↓ 7 callersMethodread
python/src/load.cpp:148
↓ 7 callersMethodreset
mlx/backend/cuda/cuda_utils.h:46
↓ 7 callersMethodreset_peak_memory
mlx/backend/cuda/allocator.cpp:355
↓ 7 callersFunctionsave
Save array to out stream in .npy format */
mlx/io/load.cpp:144
↓ 7 callersFunctionscalar_to_double
python/src/ops.cpp:38
↓ 7 callersFunctionscalar_to_dtype
python/src/ops.cpp:28
↓ 7 callersMethodset_name
mlx/graph_utils.cpp:33
↓ 7 callersMethodsize
mlx/distributed/mpi/mpi.cpp:370
↓ 7 callersFunctionsoftmax_exp
mlx/backend/metal/kernels/softmax.h:4
↓ 7 callersMethodstart
mlx/backend/cuda/worker.cpp:14
↓ 7 callersFunctionstep
r"""Applies the Step Activation Function. This function implements a binary step activation, where the output is set to 1 if the input is gre
python/mlx/nn/layers/activations.py:224
↓ 7 callersFunctiontile
mlx/ops.cpp:1328
↓ 7 callersFunctionto_group
mlx/distributed/ops.cpp:15
↓ 7 callersFunctionvalue_and_grad
* Returns a function which computes the value and gradient of the input * function with respect to a single input array. **/
mlx/transforms.h:87
↓ 6 callersMethod__conv_general_test
( self, in_shape, wt_shape, stride=1, padding=0, kernel_dilati
python/tests/test_conv.py:686
↓ 6 callersMethod__default_test
( self, op, np_args, simple_transform=lambda x: x, atol_np=1e-3,
python/tests/test_bf16.py:44
↓ 6 callersMethodapply_epilogue
mlx/backend/metal/kernels/steel/gemm/mma.h:588
↓ 6 callersMethodapply_epilogue_safe
mlx/backend/metal/kernels/steel/gemm/mma.h:626
↓ 6 callersMethodapply_inplace_op
mlx/backend/metal/kernels/steel/gemm/loader.h:63
↓ 6 callersFunctionargpartition
* Returns indices that partition the flattened array * such that the smaller kth elements are first. **/
mlx/ops.cpp:2636
↓ 6 callersFunctionargsort
Returns indices that sort the flattened array. */
mlx/ops.cpp:2571
↓ 6 callersFunctionatleast_1d
mlx/ops.cpp:6094
↓ 6 callersFunctionatleast_2d
mlx/ops.cpp:6112
← previousnext →401–500 of 4,946, ranked by callers