You are using the wrong libraries I guess. If you built PyTorch yourself, then you should use your own copy. Otherwise, please copy those from [PythonRoot]\Lib\site-packages\torch\lib if you build using the conda/pip version or [LibTorchRoot]\lib if you use LibTorch.