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.2.0.tar.gz (149.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.2.0-py3-none-any.whl (170.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mygrad-2.2.0.tar.gz
  • Upload date:
  • Size: 149.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for mygrad-2.2.0.tar.gz
Algorithm Hash digest
SHA256 be4d46895cc318607e371d67c3979ca49b7c9eea3b092c6920563bdd7585b994
MD5 2a384b435378004bdcdbd42f6c481ae5
BLAKE2b-256 5157fa2ea5d57ec6456f8b9bdef73f4b27bd3db113b73f0ca010dc0e440292ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mygrad-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 170.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for mygrad-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1cbcc5289e3fb3f4192b54d784f1b86b408563fbbfe4678ec8f64379e90531
MD5 a564e8aec203cf30b43ee2cf0d86adf9
BLAKE2b-256 a538fad2999a0077a20708205eb771c927378881b69320e16fe865a448d5d552

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