19 #include "ngraph/op/op.hpp"
20 #include "ngraph/op/util/variable.hpp"
33 static constexpr NodeTypeInfo type_info{
"ReadValue", 3};
34 const NodeTypeInfo&
get_type_info()
const override {
return type_info; }
41 ReadValue(
const Output<Node>& init_value,
const std::string& variable_id);
46 clone_with_new_inputs(
const OutputVector& new_args)
const override;
50 std::string get_variable_id() {
return m_variable_id; }
51 std::shared_ptr<ngraph::Variable> get_variable() {
return m_variable; }
52 void set_variable_id(
const std::string& variable_id)
54 m_variable_id = variable_id;
56 void set_variable(
const std::shared_ptr<ngraph::Variable>& variable)
58 m_variable = variable;
62 std::string m_variable_id;
63 std::shared_ptr<ngraph::Variable> m_variable;