Release MyGrad 2.0.0.dev3
Implements Tensor.__array_function__
.
Common numpy functions now have "drop-in" autodiff, when they operate on a tensor:
>>> x = mg.tensor([2., -1., 0.])
>>> numpy.einsum("i,i", x, x).backward()
>>> x.grad
array([ 4., -2., 0.])