In this tutorial, I explain step by step how to setup a project in Visual Studio 2019 and run a sample code. Hope this helps!
https://towardsdatascience.com/setting-up-a-c-project-in-visual-studio-2019-with-libtorch-1-6-ad8a0e49e82c 6