mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-16 13:51:13 +08:00
![]() All functions that take an optional dtype should * have a default dtype visible in the generated docs (accomplished via `"dtype"_a = std::optional{float32}`) * behave identical when `dtype=None` or no dtype is passed This important when passing kw args down from a numpy function like: ``` def f(x, dtype=None): mx.random.uniform(dtype=dtype) # ... ``` NumPy functions behave like this. It also fixes a minor bug in `tri`: #378 Closes #378 |
||
---|---|---|
.. | ||
mlx_tests.py | ||
test_array.py | ||
test_autograd.py | ||
test_bf16.py | ||
test_blas.py | ||
test_conv.py | ||
test_device.py | ||
test_eval.py | ||
test_fft.py | ||
test_linalg.py | ||
test_load.py | ||
test_losses.py | ||
test_nn.py | ||
test_ops.py | ||
test_optimizers.py | ||
test_quantized.py | ||
test_random.py | ||
test_reduce.py | ||
test_tree.py | ||
test_vmap.py |