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.2.tar.gz (145.1 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.2-py3-none-any.whl (167.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mygrad-2.0.2.tar.gz
  • Upload date:
  • Size: 145.1 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.60.0 CPython/3.9.4

File hashes

Hashes for mygrad-2.0.2.tar.gz
Algorithm Hash digest
SHA256 a4530220cf509baba0e25e602756446871f675a36e9e374e2ea8a2c7e9f232ff
MD5 524b95b451a504a2e1caeee2cec89102
BLAKE2b-256 3f0b75cdb726173e0f3d6552cd9cb4710db35f86921f948865529904929a0d8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mygrad-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 167.4 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.60.0 CPython/3.9.4

File hashes

Hashes for mygrad-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48e18d68975c2b1e41370cdf01b3855e3b7723856f0e49bc3a880a5439bd4047
MD5 a15cb2a6f4a487f9c8a85bd22298d77c
BLAKE2b-256 c146e9579dab97163bf4577ba7b2f7e388a990c87266f76b01a3a798b0cec7bc

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