Setting up a C++ project in Visual Studio 2019 with LibTorch 1.6

Manpreet Singh Minhas
Towards Data Science
4 min readNov 15, 2020

--

There are countless tutorials on how to train models in PyTorch using python, how to deploy them by using flask or Amazon SageMaker, and so on. However, there are limited resources on how to work in C++ and even more so for the Visual Studio project setup. When you want to use your model in a real world application, speed is your concern and you wouldn’t want to store the model on the cloud because of privacy/security concerns then you would need to turn to our good old (badass) buddy C++.

--

--