How to save torchscript model using cpp?

link : (libtorch) Save MNIST c++ example's trained model into a file, and load in from another c++ file to use for prediction? - #9 by Ziri_Ziri