19 #include "ngraph/op/op.hpp"
20 #include "ngraph/op/util/variable.hpp"
32 static constexpr NodeTypeInfo type_info{
"Assign", 3};
33 const NodeTypeInfo&
get_type_info()
const override {
return type_info; }
40 Assign(
const Output<Node>& new_value,
const std::string& variable_id);
45 clone_with_new_inputs(
const OutputVector& new_args)
const override;
49 std::string get_variable_id() {
return m_variable_id; }
50 std::shared_ptr<ngraph::Variable> get_variable() {
return m_variable; }
51 void set_variable_id(
const std::string& variable_id)
53 m_variable_id = variable_id;
55 void set_variable(
const std::shared_ptr<ngraph::Variable>& variable)
57 m_variable = variable;
61 std::string m_variable_id;
62 std::shared_ptr<ngraph::Variable> m_variable;