mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +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 | ||
src | ||
tests | ||
README.md |
Packaging for PyPI
Install build
and twine
:
pip install --user --upgrade build
pip install --user --upgrade twine
Generate the source distribution and wheel:
python -m build
Warning use a test server first
Test Upload
Upload to test server:
python -m twine upload --repository testpypi dist/*
Install from test server and check that it works:
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps mlx
Upload
python -m twine upload dist/*