Prakhar Sharma
Prakhar Sharma

Reputation: 758

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.

Upvotes: 0

Views: 7450

Answers (1)

Shai
Shai

Reputation: 114826

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

Upvotes: 1

Related Questions