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.
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