- Run main of pythontracing.py --> training the MNIST network and saving it to model.pth
- Run demo of pythontracing.py --> tracing the model.pth so it can be used in c++
- Build the example-app.cpp using CMake
- Run it!
tobiascz/MNIST_Pytorch_python_and_capi
This is an example of how to train a MNIST network in Python and run it in c++ with pytorch 1.0
Python