onnx-mxnet
onnx-mxnet copied to clipboard
Is it possible to load an onnx model with a non-Python API?
In particular I'd like to load an .onnx file in C++. Thanks.
@newling Currently we do not have a C++ API to import onnx models to mxnet.
@newling can you describe your use case a bit? we may be able to help.
I would like to load onnx models, and run them (on CPU). Mostly for testing: I would like to compare the outputs obtained with my (C++) implementations. Not urgent.
Does anyone know how to do that?
In MXNet, at least, ONNX load is supported only via Python API. Not sure about other frameworks. However, you can write a simple script that exports the onnx model to MXNet model, and then you can load the MXNet model with the various MXNet language APIs such as Scala or C++, and there is a Java API coming soon. You can also use MXNet Model Server that supports ONNX out of the box (no conversions needed).