Public Member Functions
ngraph::onnx_import::Model Class Reference

Public Member Functions

 Model (const ONNX_NAMESPACE::ModelProto &model_proto)
 
 Model (const Model &)=default
 
 Model (Model &&)=default
 
Modeloperator= (const Model &)=delete
 
Modeloperator= (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 Operatorget_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...
 

Member Function Documentation

◆ enable_opset_domain()

void ngraph::onnx_import::Model::enable_opset_domain ( const std::string &  domain)

Enable operators from provided domain to use by this model.

Note
This function makes visible all currently registered in provided domain operators for use in this model.
Parameters
[in]domainThe domain name.

◆ get_operator()

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.

Parameters
nametype name of the operator object,
domaindomain name of the operator object.
Returns
Reference to the operator object.
Exceptions
error::UnknownDomainthere is no operator set defined for the given domain,
error::UnknownOperatorthe given operator type name does not exist in operator set.

◆ is_operator_available()

bool ngraph::onnx_import::Model::is_operator_available ( const ONNX_NAMESPACE::NodeProto &  node_proto) const

Check availability of operator base on NodeProto.

Returns
true if the operator is available, otherwise it returns false.

The documentation for this class was generated from the following file: