Closed Priyansi closed 4 years ago
In lesson2-sgd, an error pops up, specifically, cannot call numpy on variable that requires grad. I have included a simple fix by changing x@a to x@a.detach().numpy(). This solves the error.
Check out this pull request on
You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.
Can you please tell me why this failed?
In lesson2-sgd, an error pops up, specifically, cannot call numpy on variable that requires grad. I have included a simple fix by changing x@a to x@a.detach().numpy(). This solves the error.