File tree
7 files changed
+37
-4
lines changed- deps
- lib/nn/layers
- src
- tests
7 files changed
+37
-4
lines changed- CMakeLists.txt+1-1
- docs/src/python/data_types.rst+9
- docs/src/python/linalg.rst+6-2
- docs/src/python/ops.rst+1
- docs/src/usage/numpy.rst+27-15
- mlx/array.cpp+24-1
- mlx/array.h+15
- mlx/backend/common/common.cpp+3
- mlx/backend/cpu/CMakeLists.txt+1
- mlx/backend/cpu/arange.h+3
- mlx/backend/cpu/arg_reduce.cpp+3
- mlx/backend/cpu/binary.cpp+41-28
- mlx/backend/cpu/binary.h+3
- mlx/backend/cpu/binary_two.h+3
- mlx/backend/cpu/copy.cpp+6
- mlx/backend/cpu/gemms/cblas.cpp+35
- mlx/backend/cpu/indexing.cpp+12
- mlx/backend/cpu/jit_compiler.cpp+1-1
- mlx/backend/cpu/luf.cpp+88
- mlx/backend/cpu/matmul.cpp+3
- mlx/backend/cpu/reduce.cpp+10
- mlx/backend/cpu/scan.cpp+4
- mlx/backend/cpu/select.cpp+3
- mlx/backend/cpu/simd/accelerate_simd.h+5
- mlx/backend/cpu/simd/base_simd.h+6
- mlx/backend/cpu/softmax.cpp+5-1
- mlx/backend/cpu/sort.cpp+8
- mlx/backend/cpu/unary.cpp+15
- mlx/backend/cpu/unary.h+40
- mlx/backend/cpu/unary_ops.h+1
- mlx/backend/metal/conv.cpp+86-72
- mlx/backend/metal/device.cpp+42-10
- mlx/backend/metal/device.h+9-5
- mlx/backend/metal/distributed.cpp+20-15
- mlx/backend/metal/kernels/conv.metal+417-12
- mlx/backend/metal/kernels/quantized.h+11-11
- mlx/backend/metal/kernels/unary.metal+7-3
- mlx/backend/metal/kernels/unary_ops.h+7
- mlx/backend/metal/matmul.cpp+1-1
- mlx/backend/metal/metal.cpp+1-3
- mlx/backend/metal/primitives.cpp+9-3
- mlx/backend/metal/quantized.cpp+4-4
- mlx/backend/metal/unary.cpp+1
- mlx/backend/metal/utils.cpp+3
- mlx/backend/metal/utils.h+15
- mlx/backend/no_cpu/primitives.cpp+2
- mlx/backend/no_metal/primitives.cpp+2
- mlx/compile.cpp+2-2
- mlx/compile.h+1-1
- mlx/distributed/mpi/mpi.cpp+4
- mlx/distributed/ring/ring.cpp+4
- mlx/dtype.cpp+18-15
- mlx/dtype.h+2
- mlx/io/safetensors.cpp+94
- mlx/linalg.cpp+131-1
- mlx/linalg.h+12
- mlx/ops.cpp+16-1
- mlx/ops.h+4
- mlx/primitives.cpp+11-1
- mlx/primitives.h+25-1
- mlx/types/limits.h+3
- mlx/utils.cpp+11-1
- mlx/utils.h+12-4
- python/mlx/nn/layers/convolution.py+2-2
- python/src/CMakeLists.txt+1
- python/src/array.cpp+5-4
- python/src/convert.cpp+6-1
- python/src/export.cpp+59-10
- python/src/linalg.cpp+104-11
- python/src/mlx.cpp+2
- python/src/mlx_func.cpp+108
- python/src/mlx_func.h+24
- python/src/ops.cpp+22
- python/src/transforms.cpp+89-41
- python/src/utils.cpp+7-3
- python/tests/mpi_test_distributed.py+15
- python/tests/test_array.py+12
- python/tests/test_autograd.py+53
- python/tests/test_compile.py+27
- python/tests/test_conv.py+1-1
- python/tests/test_double.py+178
- python/tests/test_export_import.py+28
- python/tests/test_linalg.py+117
- python/tests/test_load.py+41
- python/tests/test_ops.py+12
- python/tests/test_vmap.py+39
- setup.py+1-1
- tests/linalg_tests.cpp+92
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| 335 | + | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
399 | 403 | | |
400 | 404 | | |
401 | 405 | | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
| |||
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
| 573 | + | |
| 574 | + | |
568 | 575 | | |
569 | 576 | | |
570 | 577 | | |
| |||
778 | 785 | | |
779 | 786 | | |
780 | 787 | | |
| 788 | + | |
781 | 789 | | |
782 | 790 | | |
783 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
524 | 538 | | |
0 commit comments