mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 17:31:16 +08:00
![]() * Added an identity and bilinear layers Added a reset_parameters option Added normal init for bias * pre-commit run * add type hints for parameters and the return type change Bilinear math to x_1 and x_2 change __call__ arguments to x and y instead of input and output add explanation to the Initialization * Remove unnecessary reshape * Added 'i' to bilinear formula * Changed bilinear computation to two matrix multiplications * avoid saving intermediate results, kept y in bilinear for better clarity (can be replaced with x1) * Changed math formula in Linear Added more explanation to math formulas Changed x1, x2 reshape to support all inputs sizes |
||
---|---|---|
.. | ||
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/*