Skip to main content

Brings drop-in automatic differentiation to NumPy

Project description

MyGrad is a lightweight library that adds automatic differentiation to NumPy – its only dependency is NumPy! It’s primary goal is to make automatic differentiation an accessible and easy to use across the Python/NumPy ecosystem.

MyGrad introduces a tensor object, which behaves like NumPy’s ndarray object, but that builds a computational graph, which enables MyGrad to perform reverse-mode differentiation (i.e. “backpropagation”). By exploiting NumPy’s mechanisms for ufunc/function overrides, MyGrad’s tensor works “natively” with NumPy’s suite of mathematical functions so that they can be chained together into a differentiable computational graph.

NumPy’s systems for broadcasting operations, producing views of arrays, performing in-place operations, and permitting both “basic” and “advanced” indexing of arrays are all supported by MyGrad to a high-fidelity.

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

mygrad-2.0.1.tar.gz (145.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mygrad-2.0.1-py3-none-any.whl (167.3 kB view details)

Uploaded Python 3

File details

Details for the file mygrad-2.0.1.tar.gz.

File metadata

  • Download URL: mygrad-2.0.1.tar.gz
  • Upload date:
  • Size: 145.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mygrad-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e3c05d1b73b840a2d48576e92a81f1de48ca45e6c8ec6fe9fcfb2bb744dee9d6
MD5 a0c8254878f4796877e415dbb407b171
BLAKE2b-256 6569a0b0d1668466c5a3f57f6ccacc1055d23a47e90ba74413c9567da39ae5e1

See more details on using hashes here.

File details

Details for the file mygrad-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: mygrad-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 167.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mygrad-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a01a0b8767ac73efd772b82378b0f74f2a88f613f437c4924d106d77298a4ad8
MD5 b04040c43301911cf4ae6abc89d05471
BLAKE2b-256 de033e5aa45d784cdc5112733f01690c3402677aac97e31ab0262bb70481fc6b

See more details on using hashes here.

Supported by

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