@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 API. I’d suggest opening an issue in https://github.com/pytorch/pytorch/issues 18 and we can discuss the use cases.
You want to save a model written in C++ frontend to a TorchScript model file
Answer: This is not supported and likely won’t be supported in the short term, because implementing this mechanism is a huge effort, and we will need more use cases to actually establish this as a project to work on.