From libtorch to ONNX


#1

There is a way to load an ONNX or traced model in libtorch, but is there an option to go in the opposite direction? I would like to export a model defined and trained using C++ interface to ONNX format. If there is no such a feature, what is the exact reason for that. How difficult would it be to implement?