Add `importModel` method as a future replacement for `import` and `createIR` methods.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
return _graph;
}
+
+std::unique_ptr<mir::Graph> ONNXImporterImpl::importModel()
+{
+ import();
+ return std::unique_ptr<mir::Graph>(createIR());
+}
+
} // namespace nnc
void import();
mir::Graph *createIR();
+ /// @brief Load the model and convert it into a MIR Graph.
+ std::unique_ptr<mir::Graph> importModel();
+
static mir::TensorVariant createTensor(const onnx::TensorProto *tensor);
private: