Created
May 25, 2019 07:14
-
-
Save vaibhavkumar049/bfbfa6dc5891506bccc5db7be513a94e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
y = x + 5 | |
z = y*y + 1 | |
t = torch.sum(z) | |
t.backward() | |
print(x.grad) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment