module 'torch' has no attribute 'linalg'
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.

linalg was introduced to pytorch only on a later version (1.7.0). Update pytorch and try again.
