mlx/tests
jhavukainen 8b9a3f3cea
Align mlx::core::max op nan propagation with NumPy (#2339)
* Make max op NaN propagation rules align with numpy

* Adding benchmarks and testing for max op nanpropagation

* Pre-commit formatting

* Fix max complex64 nan propagation and add test

* Improve the cpp unittest

* Only check nans on non-integral types in simd_reduce_impl.

* Cleanup using namespace alias

* Add cpu Max nanpropagation. Fix a small fib in cpu max dispatch data types for int8/int16.

* Make the max nanpropagation test more meaningful for integer types

* Remove tuple unpacking syntax to comply with earlier python versions. Add cuda skip to nanpropagation tests, fix cuda implementation in a separate PR.
2025-07-09 11:26:27 -07:00
..
allocator_tests.cpp Metal validation (#432) 2024-01-11 11:57:24 -08:00
arg_reduce_tests.cpp Use int64 stride everywhere (#1671) 2024-12-09 11:09:02 -08:00
array_tests.cpp Use int64 stride everywhere (#1671) 2024-12-09 11:09:02 -08:00
autograd_tests.cpp Fix some complex vjps (#2178) 2025-05-14 23:37:12 -07:00
blas_tests.cpp Use int64 stride everywhere (#1671) 2024-12-09 11:09:02 -08:00
CMakeLists.txt CUDA backend: backbone (#2075) 2025-05-06 21:26:46 -07:00
compile_tests.cpp fix compile merging (#2150) 2025-05-02 15:08:50 -07:00
creations_tests.cpp Remove test of converting negative float to uint (#2048) 2025-04-06 06:21:46 -07: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
export_import_tests.cpp Use unordered map for kwargs in export/import (#2087) 2025-04-21 07:17:22 -07:00
fft_tests.cpp Fix some complex vjps (#2178) 2025-05-14 23:37:12 -07:00
gpu_tests.cpp Remove metal-only tests (#2139) 2025-04-30 09:08:39 -07:00
linalg_tests.cpp Adds nuclear norm support (#1894) 2025-03-04 13:26:02 -08:00
load_tests.cpp Use int64 stride everywhere (#1671) 2024-12-09 11:09:02 -08:00
ops_tests.cpp Align mlx::core::max op nan propagation with NumPy (#2339) 2025-07-09 11:26:27 -07:00
random_tests.cpp Resolved ambiguity in mlx::core::take_along_axis (#1822) 2025-02-04 06:06:17 -08:00
scheduler_tests.cpp redesign for faster cpu/gpu synch (#1869) 2025-03-06 19:23:38 -08:00
tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
utils_tests.cpp iinfo and scalar overflow detection (#2009) 2025-03-27 19:54:56 -07:00
vmap_tests.cpp Adds nuclear norm support (#1894) 2025-03-04 13:26:02 -08:00