class ov::frontend::DecoderBase¶
Overview¶
#include <decoder.hpp>
class DecoderBase
{
public:
// typedefs
typedef std::unordered_map<std::string, std::string> OpTypeByName;
// methods
virtual ov::Any get_attribute(const std::string& name) const = 0;
virtual size_t get_input_size() const = 0;
virtual void get_input_node(
size_t input_port_idx,
std::string& producer_name,
size_t& producer_output_port_index
) const = 0;
virtual void get_input_node(
size_t input_port_idx,
std::string& producer_name,
size_t& producer_output_port_index,
const OpTypeByName& op_type_by_name
) const = 0;
virtual const std::string& get_op_type() const = 0;
virtual const std::string& get_op_name() const = 0;
};
Detailed Documentation¶
Methods¶
virtual ov::Any get_attribute(const std::string& name) const = 0
Get attribute value by name.
Parameters:
name |
Attribute name |
Returns:
Shared pointer to appropriate value converted to openvino data type if it exists, ‘nullptr’ otherwise
virtual size_t get_input_size() const = 0
Get a number of inputs.
virtual void get_input_node(
size_t input_port_idx,
std::string& producer_name,
size_t& producer_output_port_index
) const = 0
Get a producer name and its output port index.
Parameters:
input_port_idx |
Input port index by which data is consumed |
producer_name |
A producer name |
Returns:
producer_output_port_index Output port index from which data is generated
virtual void get_input_node(
size_t input_port_idx,
std::string& producer_name,
size_t& producer_output_port_index,
const OpTypeByName& op_type_by_name
) const = 0
Get a producer name and its output port index.
Parameters:
input_port_idx |
Input port index by which data is consumed |
producer_name |
A producer name |
producer_output_port_index |
Output port index from which data is generated |
op_type_by_name |
Map of operation name to their types |
virtual const std::string& get_op_type() const = 0
Get operation type.
virtual const std::string& get_op_name() const = 0
Get node name.