Closed boazcogan closed 3 years ago
@pseeth Are you aware of a fix for this?
I haven't had the time to fully fix and formalize a commit for this yet, but most (if not all) of these issues can be fixed by embedding the code block in:
with torch.zero_grad(): ...
Here is a reference to a similar question and an answer from a pytorch developer.
This still looks broken
@pseeth
Whoops! I merged the fix for this (#26). I forgot to close the issue! My bad!
Pytorch seems to have updated how they handle leaf variables causing all of the tutorial sections in the gradient descent section to crash.