Experimental implementation of torch/onnx einsum
pip3 install -U einsum
Or develop locally:
git clone https://github.com/sorenlassen/einsum-experiment ~/einsum
cd ~/einsum
python3 setup.py develop
import einsum
print('TODO')
Run einsum
's test suite:
pip3 install pytest
pytest
or
python3 setup.py develop # enables the test file to import einsum
python3 tests/test_einsum.py
Type check with mypy:
pip3 install mypy
python3 -m mypy src/einsum/lib.py
To publish a new release to pypi:
pip3 install python-semantic-release
# verify tests pass.
pytest
# bump the version number, add a git tag.
semantic-release version --patch # or --minor, or --major
# push the new version number and tag to github.
git push && git push --tags
# publish to pypi.
poetry build
poetry publish
pyproject.toml
was generated with mkpylib.
setup.py
was generated with poetry-gen-setup-py.