Solved by yf225 in post #10 
              
              
                @SixerWang By “saving a TorchScript model in C++”, do you mean one of the following: 

You want to embed Python/TorchScript code in your C++ code, and then save that portion of code to a TorchScript model file 
Answer: This is not supported right now, but it is possible to implement / expose this AP…