Reputation: 758
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.
Upvotes: 0
Views: 7450
Reputation: 114826
linalg
was introduced to pytorch only on a later version (1.7.0). Update pytorch and try again.
Upvotes: 1