Look here:
  
    
    
    [c++][c#] Is it possible to use c++(libtorch) dll in c# C++
  
  
    I tried to use libtorch in c#. 
I made P/Invoke dll which is wrapped libtorch. 
But when I use it in c# application, it cannot load my custom dll. 
I wonder is there anyone make c++ dll with libtorch and run it in c# application?
  


Is your C# assembly set to x64 and are all pytorch DLLs in the same directory ?
I don’t think ‘DLL not found’ is related to build.