Tensor.backward()
Returns the gradient of current tensor w.r.t. graph leaves.
Usage
from tinygrad.tensor import Tensor
out = Tensor([1, 2, 3, 4])
y = Tensor([1, 2, 3, 4])
loss = out.mul(y).mean()
loss = loss.backward()
print(loss)
Return value
None