when import torch, an AttributeError is raised saying ...
github.com › pytorch › pytorchApr 08, 2018 · There's a file "select.py" in a folder, containing only one line from torch.autograd import Variable. I open a python console in this folder and type import torch, and then an AttributeError: 'module' object has no attribute 'cuda' is raised. OS: Ubuntu 14.04; PyTorch version: '0.3.1.post2' How you installed PyTorch (conda, pip, source): conda