16 lines
476 B
C++
16 lines
476 B
C++
#include <inference_engine.hpp>
|
|
#include <ngraph/ngraph.hpp>
|
|
#include "onnx_import/onnx.hpp"
|
|
|
|
int main() {
|
|
//! [part1]
|
|
const std::string op_name = "Abs";
|
|
const std::int64_t version = 12;
|
|
const std::string domain = "ai.onnx";
|
|
const bool is_abs_op_supported = ngraph::onnx_import::is_operator_supported(op_name, version, domain);
|
|
|
|
std::cout << "Abs in version 12, domain `ai.onnx`is supported: " << (is_abs_op_supported ? "true" : "false") << std::endl;
|
|
//! [part1]
|
|
return 0;
|
|
}
|