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.1.0.tar.gz (148.8 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.1.0-py3-none-any.whl (170.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mygrad-2.1.0.tar.gz
  • Upload date:
  • Size: 148.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for mygrad-2.1.0.tar.gz
Algorithm Hash digest
SHA256 78a9b27f9e4ba52200959d5b8f528287109fff56ec22a4ea3b8c3467b6b6246f
MD5 b7be5cc01af7632aec3dce8838ad17f6
BLAKE2b-256 6690cc7417cb495053db6bbac98217ad1f5c6be2187e623f9cafa80a3444d0c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mygrad-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 170.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for mygrad-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1834fbf9105e90c525b9122c1df32272777fab2b1b3b81e680b7530f9a4ccb48
MD5 6b1bb004e266eb1ac92b560226e5a2f4
BLAKE2b-256 129750a040e831e80d97ad8d6fa6a94a823e22b739f90b60478eee01ccad9d3b

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