Я только что загрузил PyTorch с CUDA через Anaconda, и когда я ввожу терминал Anaconda:
Код: Выделить всё
import torch
if torch.cuda.is_available():
print('it works')
But when I go to my IDE (PyCharm and IntelliJ) and write the same code, it doesn't output anything.
Could someone please explain to me how I can somehow get this to work in the IDE?
Источник: https://stackoverflow.com/questions/654 ... m-intellij