mlx/python/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
..
mlx_tests.py Make MLX build on x64 macOS (#901) 2024-03-27 06:14:29 -07:00
mpi_test_distributed.py Add docs for the distributed namespace (#1184) 2024-06-06 11:37:00 -07:00
test_array.py add zero vjps for bitwise ops and gather w.r.t. index (#1256) 2024-07-07 21:34:59 -07:00
test_autograd.py Custom transforms (#1246) 2024-07-10 18:00:01 -07:00
test_bf16.py bump pre commit and fix format (#373) 2024-01-04 16:28:52 -08:00
test_blas.py Masked gemv (#1211) 2024-06-14 09:52:26 -07:00
test_compile.py fix donation condition for compilation (#1237) 2024-06-26 09:04:05 -07:00
test_constants.py feat: Add numpy constants (#428) 2024-01-11 06:47:29 -08:00
test_conv.py Add softmin, hardshrink, hardtanh (#1180) 2024-06-04 15:48:18 -07:00
test_device.py Adds device context manager (#679) 2024-02-14 14:14:58 -08:00
test_einsum.py Einsum (#1269) 2024-07-25 09:36:44 -07:00
test_eval.py Fix leak with multi-output primitives (#1274) 2024-07-23 06:34:18 -07:00
test_fast_sdpa.py Add softmin, hardshrink, hardtanh (#1180) 2024-06-04 15:48:18 -07:00
test_fast.py No copy command encoder (#986) 2024-04-11 21:15:36 -07:00
test_fft.py fix scatter + test (#1202) 2024-06-11 14:35:12 -07:00
test_graph.py Multi output primitives (#330) 2024-01-08 16:39:08 -08:00
test_init.py Make shape a tuple (#591) 2024-01-30 13:11:01 -08:00
test_linalg.py Implemented Cholesky on CPU (#1119) 2024-05-17 12:31:59 -07:00
test_load.py Fix logsumexp edge case (#740) 2024-02-25 08:39:55 -08:00
test_losses.py Improve stability of BCE loss calculation for input probabilities close to or exactly 0 or 1 (#1280) 2024-07-24 08:38:22 -07:00
test_metal.py Add softmin, hardshrink, hardtanh (#1180) 2024-06-04 15:48:18 -07:00
test_nn.py Fix the hard-shrink test (#1185) 2024-06-04 16:22:56 -07:00
test_ops.py Fix GPU sort for large arrays (#1285) 2024-07-24 14:37:10 -07:00
test_optimizers.py Treate 'minimum' differently in cosine decay (#1138) 2024-05-20 08:00:48 -07:00
test_quantized.py Rename block sparse (#1149) 2024-05-22 07:48:34 -07:00
test_random.py Implement sampling from laplace distribution. (#1279) 2024-07-24 15:15:37 +02:00
test_reduce.py Add GPU support for uint64/int64 reductions (#569) 2024-01-31 11:18:04 -08:00
test_tree.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_upsample.py Upsample with bicubic interpolation (#967) 2024-04-10 15:47:22 -07:00
test_vmap.py Adds radians and degrees (#1011) 2024-04-22 11:17:49 -07:00