The following are the loaded DLLs:
C:\dev\anaconda\python3.dll
C:\dev\anaconda\python3.dll
C:\dev\anaconda\python3.dll
C:\Windows\System32\kernel32.dll
C:\Windows\System32\kernel32.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\asmjit.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\asmjit.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\asmjit.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10.dll
C:\dev\anaconda\msvcp140.dll
C:\dev\anaconda\msvcp140.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10_cuda.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10_cuda.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\c10_cuda.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll
C:\dev\anaconda\vcomp140.dll
C:\dev\anaconda\vcomp140.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cuda.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cpu.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cuda.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cpu.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cuda.dll
C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64\nvToolsExt64_1.dll
C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64\nvToolsExt64_1.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cusparse64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cusparse64_100.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cpu.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\curand64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\curand64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudnn64_7.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudnn64_7.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\torch_cpu.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cufft64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cufft64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cublas64_100.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cublas64_100.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\fbgemm.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\fbgemm.dll
C:\dev\anaconda\Lib\site-packages\torch\lib\fbgemm.dll

The interesting fact is that it tries to load the DLLs from CUDA 10.0 but you say that you are trying to build against CUDA 10.1. Maybe you can make sure you are not mixing the two versions of CUDA during build by executing the commands before build.
set CUDA_PATH=%CUDA_PATH_V10_1%
set "PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PATH%"