Reputation: 35
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
Upvotes: 0
Views: 146
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