mlx/tests
Awni Hannun baf9fa5f42
Einsum (#1269)
* einsum initial

* fix comma break

* sum axis was wrong

* small cleanups

* python binding

* changed bindings to resemble numpy

* remove todo comment

* comment changes

* add count of operands/inputs

* fail fast if operands list is empty

* ignore comma if no output

* einsum path matching numpy

* getting somewhere with path

* remove print

* it passes the first test

* moved einsum tests to seperate file

* seperated einsum path

* moved einsum naive

* remove space from equation

* fast fail if no operands passed

* update tests and remove printf

* small cleanup

* some more cleanups

* removed python helper file

* ack

* utilize std for finding min in vector

* duplicate def

* remove the tuple as it was unreadable

* moved einsum_naive back to ops

* remaining isn't needed

* avoid creating another set

* cleanup

* greedy path, start of naive einsum

* more einsum

* fix some bugs

* some more fixes, tests pass

* benchmark

* some simplify

* fix einsum and test

Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>

* add a bunch more tests and fix a bunch more bugs

* some docs nits

---------

Co-authored-by: dc-dc-dc <dgcruz983@gmail.com>
Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>
2024-07-25 09:36:44 -07:00
..
allocator_tests.cpp Metal validation (#432) 2024-01-11 11:57:24 -08:00
arg_reduce_tests.cpp Shared events for synchronization + async eval (#998) 2024-04-17 06:16:02 -07:00
array_tests.cpp Fix empty array construction in cpp (#684) 2024-02-13 23:34:17 -08:00
autograd_tests.cpp Add bitwise ops (#1037) 2024-04-26 22:03:42 -07:00
blas_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
CMakeLists.txt Einsum (#1269) 2024-07-25 09:36:44 -07:00
compile_tests.cpp Fixes #918 bug in compile_tests (#919) 2024-03-27 22:37:37 -07:00
creations_tests.cpp Propagate nans in binary ops (#579) 2024-01-29 11:19:38 -08:00
custom_vjp_tests.cpp Update pre-commit hooks (#984) 2024-04-11 07:27:53 -07:00
device_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
einsum_tests.cpp Einsum (#1269) 2024-07-25 09:36:44 -07:00
eval_tests.cpp Shared events for synchronization + async eval (#998) 2024-04-17 06:16:02 -07:00
fft_tests.cpp Feature complete Metal FFT (#1102) 2024-06-06 12:57:25 -07:00
linalg_tests.cpp Implemented Cholesky on CPU (#1119) 2024-05-17 12:31:59 -07:00
load_tests.cpp Metadata support for safetensors (#639) 2024-02-08 19:33:15 -08:00
metal_tests.cpp Expose function to clear memory cache (#1032) 2024-04-24 16:48:51 -07:00
ops_tests.cpp fix scatter + test (#1202) 2024-06-11 14:35:12 -07:00
random_tests.cpp Implement sampling from laplace distribution. (#1279) 2024-07-24 15:15:37 +02:00
scheduler_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
utils_tests.cpp Ensure shape dimensions are within supported integer range (#566) (#704) 2024-03-25 13:29:45 -07:00
vmap_tests.cpp Add vmap for SVD and inverse (#849) 2024-03-21 13:18:27 -07:00