Error about mistake in code #280
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'
Which Pytorch version are you using ?
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.