Import module issue (torch._C)

----> 1 import torch
2 import torch.nn as nn
3 import torch.nn.functional as F
5 # define a neural network with a single convolutional layer with four filters

C:\ProgramData\Anaconda3\lib\site-packages\ in
74 pass
ā€”> 76 from torch._C import *
78 all += [name for name in dir(_C)

ImportError: DLL load failed: The specified module could not be found.

I just installed latest pytorch version and tried to import some of the module and I faced the error above. I think the error is self explanatory, thanks.

Hi Isaac,

How did you install PyTorch? Was it via Pip or Conda?

In your current working directory, is there a folder called torch? Can you try changing your directory if so?