Mygrad

Latest version: v2.2.0

Safety actively analyzes 629004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

2.0.0.dev4

Adds convenient overrides and mirrors to non-differentiable numpy functions and (non-complex) dtypes.

- allclose
- bincount
- can_cast
- copyto
- may_share_memory
- min_scalar_type
- result_type
- shares_memory
- shape

2.0.0.dev3

Implements `Tensor.__array_function__`.

Common numpy functions now have "drop-in" autodiff, when they operate on a tensor:

python
>>> x = mg.tensor([2., -1., 0.])
>>> numpy.einsum("i,i", x, x).backward()
>>> x.grad
array([ 4., -2., 0.])

2.0.0.dev2

Implements `__array_ufunc__` to override/dispatch NumPy ufuncs via `mygrad.Tensor`

2.0.0.dev1

1.9.0

1.8.1

See [changelog](https://mygrad.readthedocs.io/en/latest/changes.html)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.