2020-09-22 18:01:48 +03:00
|
|
|
#include <inference_engine.hpp>
|
|
|
|
|
#include <ngraph/ngraph.hpp>
|
2020-10-10 11:19:16 +03:00
|
|
|
#include "onnx_import/onnx.hpp"
|
2020-09-22 18:01:48 +03:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|