Skip to main content

Experimental implementation of torch/onnx einsum

Project description

einsum

Experimental implementation of torch/onnx einsum

Install

pip3 install -U einsum

Or develop locally:

git clone https://github.com/sorenlassen/einsum-experiment ~/einsum
cd ~/einsum
python3 setup.py develop

Usage

import einsum

print('TODO')

Tests

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

Release

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

About

pyproject.toml was generated with mkpylib. setup.py was generated with poetry-gen-setup-py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

einsum-0.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

einsum-0.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file einsum-0.3.0.tar.gz.

File metadata

  • Download URL: einsum-0.3.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.9.5 Darwin/20.5.0

File hashes

Hashes for einsum-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e19db2c02ad5ea8acf2926a9eab995ec1802a9db0bb39646d71e96f7cec14e31
MD5 bf33c7c040682337ad724aa8fbaab2a1
BLAKE2b-256 1e16371528e03f3a661ecaba4948205fb06c257bf9054eaddea089e72d56d58a

See more details on using hashes here.

File details

Details for the file einsum-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: einsum-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.9.5 Darwin/20.5.0

File hashes

Hashes for einsum-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2b1f7932879d630969bfb599e09f8448dcbc38a2be6cee192b8a1ae02c52dc
MD5 4af2ac49a6b779566cd276a703ee1984
BLAKE2b-256 bd91d8c6ecbe3dfd2ddecbd08e095bc4388a71958a7e1c2dab772ca3daef50da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page