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.0.tar.gz (144.3 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.0-py3-none-any.whl (166.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mygrad-2.0.0.tar.gz
  • Upload date:
  • Size: 144.3 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.0.tar.gz
Algorithm Hash digest
SHA256 57c002449d50bc927fccb75a75d091f79c7231c39cf11512267c1b301c3f4338
MD5 c9d9d8285596e4931a71ee405ad47f91
BLAKE2b-256 cda7740aa019f16935781bffe3217a9b558b792e6facfd876dddcf976a63d2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mygrad-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 166.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9247a29c2272e97fd048dc9df6ac4bcb117a61b90787b4d8543cb2f28d4e2772
MD5 3954049dfe2ab8dbfaa0fced990936cd
BLAKE2b-256 3141b11d2fe47312ef1aec3dd2a35729dcc98ed8623aaeb0e11c708f38b5e52e

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