Problem with Torch 1.11

I upgraded my cudatoolkit to 11.3.1 and installed Pytorch using
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch in the environment.
Transaction was prepared, verified and executed properly. But when I want to run a code with torch, the program stops at > import torch and return
OSError: [WinError 127] The specified procedure could not be found. Error loading “…envs\Torch\lib\site-packages\torch\lib\shm.dll”" or one of its dependencies.

cudatoolkit = 11.3.1
pytorch = 1.11.0
Python = 4.8.5
Spyder = 4.1.5

1 Like

FYI. I desinstalled anaconda and reinstalled it completely, and it works now. Heavy and painful process, but I get it!

1 Like

I’m in the same frustrating situation…

(reinstalling anaconda worked for me too)

1 Like

I deinstalled the troubled Conda environment and reinstalled pytorch, and it works now.
Luckily, my other Conda environments are not impacted…

1 Like

This worked for me. Thanks

I solved it by installing torch, torchvision, torchaudio to the compatible version
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit==11.3 -c pytorch
click below

like
pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113
cudnn11.3 Ver

Running the following command fixed the issue:

conda update --all
1 Like

Perfectly worked. Thanks