torch._C._cuda_init() returns “invalid random_device value”.
>>>torch.__version__
'2.3.0+cu118'
>>>torch.version.cuda
'11.8'
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.current_device()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\apps\stable-diffusion\Forge_20240811_121_21__3\system\python\lib\site
-packages\torch\cuda\__init__.py", line 778, in current_device
_lazy_init()
File "D:\apps\stable-diffusion\Forge_20240811_121_21__3\system\python\lib\site
-packages\torch\cuda\__init__.py", line 293, in _lazy_init
torch._C._cuda_init()
RuntimeError: invalid random_device value
Can you help, please?