7 #include <ngraph/runtime/host_tensor.hpp>
18 virtual std::shared_ptr<ngraph::Variable>
get_variable()
const {
return m_variable; }
23 virtual void set_variable(
const std::shared_ptr<ngraph::Variable>& variable)
25 m_variable = variable;
33 m_variable->get_info().variable_id = variable_id;
40 std::shared_ptr<ngraph::Variable> m_variable;
Definition: variable_extension.hpp:13
virtual std::shared_ptr< ngraph::Variable > get_variable() const
Returns variable connected to this node.
Definition: variable_extension.hpp:18
virtual void set_variable_id(const std::string &variable_id)
Sets the identifier to a variable.
Definition: variable_extension.hpp:31
virtual std::string get_variable_id() const =0
Returns the identifier of corresponding variable.
virtual void set_variable(const std::shared_ptr< ngraph::Variable > &variable)
Sets a new variable to be connected to this node.
Definition: variable_extension.hpp:23
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16