Error about mistake in code #280

Open
opened 2022-06-13 11:49:32 +02:00 by ssbugman · 2 comments
ssbugman commented 2022-06-13 11:49:32 +02:00 (Migrated from github.com)

Traceback (most recent call last):
File "P:\SimSwapmain\test_one_image.py", line 30, in
opt = TestOptions().parse()
File "P:\SimSwapmain\options\base_options.py", line 84, in parse
torch.cuda.set_device(self.opt.gpu_ids[0])
File "C:\Python310\lib\site-packages\torch\cuda_init_.py", line 313, in set_device
torch._C._cuda_setDevice(device)
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

Traceback (most recent call last): File "P:\SimSwapmain\test_one_image.py", line 30, in <module> opt = TestOptions().parse() File "P:\SimSwapmain\options\base_options.py", line 84, in parse torch.cuda.set_device(self.opt.gpu_ids[0]) File "C:\Python310\lib\site-packages\torch\cuda\__init__.py", line 313, in set_device torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
BeaverInGreenland commented 2022-06-13 14:45:25 +02:00 (Migrated from github.com)

Which Pytorch version are you using ?

Which Pytorch version are you using ?
ssbugman commented 2022-06-13 17:09:18 +02:00 (Migrated from github.com)

First I tried that in Preparations, and got "GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation."
After that i tried new PyTorch version and getting this error.

First I tried that in Preparations, and got "GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation." After that i tried new PyTorch version and getting this error.
Sign in to join this conversation.