Issue
I am getting this error AttributeError: module 'torch' has no attribute 'linalg'
when updating the parameters using optimizer.step(model.closure)
.
I am using Pytorch version 1.4.0.
Solution
linalg
was introduced to pytorch only on a later version (1.7.0). Update pytorch and try again.
Answered By - Shai
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.