Usama Waseem
Usama Waseem

Reputation: 35

Spyder complains "torch" module is not found

I am trying to run a file with 'torch' module in it. However, when I arrive at a line that contains:

training_set = torch.FloatTensor(training_set)
test_set = torch.FloatTensor(test_set)

it pops out the error that 'torch' is 'ModuleNotFoundError'

The below screenshots shows the pop-up error and I also checked whether 'torch' is up to date. I am using Spyder enter image description here

Upvotes: 0

Views: 146

Answers (1)

Daniel Althviz
Daniel Althviz

Reputation: 406

This is an open issue in Spyder: https://github.com/spyder-ide/spyder/issues/16348

For the moment, as a workaround, you can enable the option Exclude unsupported data types from the Variable Explorer options menu

Upvotes: 1

Related Questions