How can use torch.cat? I use Windows platform
Could you print your PyTorch version with:
print(torch.__version__)
Also, what error is thrown, if you try to use torch.cat
?
The method should be there, so I’m wondering, what might be wrong with your installation.
the error is below:
File “d:\py\test\te3.py”, line 1, in import torchvision File “D:\Program Files\Python\lib\site-packages\torchvision_init_.py”, line 1, in from torchvision import models File “D:\Program Files\Python\lib\site-packages\torchvision\models_init_.py”, line 1, in from .alexnet import * File “D:\Program Files\Python\lib\site-packages\torchvision\models\alexnet.py”, line 1, in import torch.nn as nn File “D:\Program Files\Python\lib\site-packages\torch_init_.py”, line 80, in from torch._C import *
ImportError: DLL load failed: specified module could not be found.
your installation has some issues
what should I do for this? what’s the right installation?