Could you post a minimal and executable code snippet to reproduce the issue or is it already failing during the import?
I’ve created a new and clean conda environment and cannot reproduce any issues:
>>> import torch
>>> torch.randn(1).cuda()
tensor([0.2782], device='cuda:0')
>>> torch.__version__
'2.2.0'
>>> torch.version.cuda
'11.8'
installed via:
conda install pytorch torchvision pytorch-cuda=11.8 -c pytorch -c nvidia