Thanks for your reply!
I used a dependency walker, is it any abnormal point?

image649×533 10 KB

I set x64 both and I copied my dll and pytorch dlls in the c# output directory.
When I made c++ dll with include torch header only, it worked.
But when I just created a tensor, it was saying ‘cannot load dll’.