I use libtorch this way.
I suggest using  (Dependency Walker 1) to find which DLL is missing.
Make sure to have your C# assembly set to x64 and both your C++ DLL and pytorch’s DLLs have to be in the output directory of your C# assembly build.