class ov::frontend::FWVisitor¶
Overview¶
#include <op.hpp>
class FWVisitor: public ov::AttributeVisitor
{
public:
// construction
FWVisitor(
const NodeContext& context,
const std::map<std::string, std::string>& attr_names_map = {},
const std::map<std::string, ov::Any>& attr_values_map = {}
);
// methods
virtual void on_adapter(const std::string& name, ValueAccessor<void>& adapter);
};
Inherited Members¶
public:
// typedefs
typedef std::string node_id_t;
// fields
static constexpr const char \* invalid_node_id = "";
// methods
virtual void on_adapter(const std::string& name, ValueAccessor<void>& adapter) = 0;
virtual void on_adapter(
const std::string& name,
ValueAccessor<void \*>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::string>& adapter
);
virtual void on_adapter(const std::string& name, ValueAccessor<bool>& adapter);
virtual void on_adapter(const std::string& name, ValueAccessor<int8_t>& adapter);
virtual void on_adapter(
const std::string& name,
ValueAccessor<int16_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<int32_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<int64_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<uint8_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<uint16_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<uint32_t>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<uint64_t>& adapter
);
virtual void on_adapter(const std::string& name, ValueAccessor<float>& adapter);
virtual void on_adapter(const std::string& name, ValueAccessor<double>& adapter);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<int8_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<int16_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<int32_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<int64_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<uint8_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<uint16_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<uint32_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<uint64_t>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<float>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<double>>& adapter
);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::vector<std::string>>& adapter
);
virtual void on_adapter(const std::string& name, VisitorAdapter& adapter);
virtual void on_adapter(
const std::string& name,
ValueAccessor<std::shared_ptr<ov::Model>>& adapter
);
template <typename AT>
void on_attribute(const std::string& name, AT& value);
const std::vector<std::string>& get_context() const;
virtual std::string get_name_with_context();
virtual void start_structure(const std::string& name);
virtual std::string finish_structure();
virtual void register_node(
const std::shared_ptr<Node>& node,
node_id_t id = invalid_node_id
);
virtual std::shared_ptr<Node> get_registered_node(node_id_t id);
virtual node_id_t get_registered_node_id(const std::shared_ptr<Node>& node);
Detailed Documentation¶
Methods¶
virtual void on_adapter(const std::string& name, ValueAccessor<void>& adapter)
handles all specialized on_adapter methods implemented by the visitor.
The adapter implements get_type_info(), which can be used to determine the adapter directly or via is_type and as_type on any platform