Files
openvino/docs/snippets/OnnxImporterTutorial0.cpp
2020-10-10 11:19:16 +03:00

20 lines
431 B
C++

#include <inference_engine.hpp>
#include <ngraph/ngraph.hpp>
#include "onnx_import/onnx.hpp"
#include <iostream>
#include <set>
int main() {
//! [part0]
const std::int64_t version = 12;
const std::string domain = "ai.onnx";
const std::set<std::string> supported_ops = ngraph::onnx_import::get_supported_operators(version, domain);
for(const auto& op : supported_ops)
{
std::cout << op << std::endl;
}
//! [part0]
return 0;
}