Public Member Functions | |
Model (const ONNX_NAMESPACE::ModelProto &model_proto) | |
Model (const Model &)=default | |
Model (Model &&)=default | |
Model & | operator= (const Model &)=delete |
Model & | operator= (Model &&)=delete |
const std::string & | get_producer_name () const |
const ONNX_NAMESPACE::GraphProto & | get_graph () const |
std::int64_t | get_model_version () const |
const std::string & | get_producer_version () const |
const Operator & | get_operator (const std::string &name, const std::string &domain) const |
Access an operator object by its type name and domain name The function will return the operator object if it exists, or report an error in case of domain or operator absence. More... | |
bool | is_operator_available (const ONNX_NAMESPACE::NodeProto &node_proto) const |
Check availability of operator base on NodeProto. More... | |
void | enable_opset_domain (const std::string &domain) |
Enable operators from provided domain to use by this model. More... | |
void ngraph::onnx_import::Model::enable_opset_domain | ( | const std::string & | domain | ) |
Enable operators from provided domain to use by this model.
[in] | domain | The domain name. |
const Operator& ngraph::onnx_import::Model::get_operator | ( | const std::string & | name, |
const std::string & | domain | ||
) | const |
Access an operator object by its type name and domain name The function will return the operator object if it exists, or report an error in case of domain or operator absence.
name | type name of the operator object, |
domain | domain name of the operator object. |
error::UnknownDomain | there is no operator set defined for the given domain, |
error::UnknownOperator | the given operator type name does not exist in operator set. |
bool ngraph::onnx_import::Model::is_operator_available | ( | const ONNX_NAMESPACE::NodeProto & | node_proto | ) | const |
Check availability of operator base on NodeProto.
true
if the operator is available, otherwise it returns false
.