class ngraph::VariableExtension

Overview

#include <variable_extension.hpp>

class VariableExtension
{
public:
    // methods

    virtual std::shared_ptr<ngraph::Variable> get_variable() const;
    virtual void set_variable(const std::shared_ptr<ngraph::Variable>& variable);
    virtual void set_variable_id(const std::string& variable_id);
    virtual std::string get_variable_id() const = 0;
};

// direct descendants

class AssignBase;
class ReadValueBase;

Detailed Documentation

Methods

virtual std::shared_ptr<ngraph::Variable> get_variable() const

Returns variable connected to this node.

virtual void set_variable(const std::shared_ptr<ngraph::Variable>& variable)

Sets a new variable to be connected to this node.

Parameters:

variable

New variable to be connected to this node.

virtual void set_variable_id(const std::string& variable_id)

Sets the identifier to a variable.

Parameters:

variable_id

New identifier of the variable.

virtual std::string get_variable_id() const = 0

Returns the identifier of corresponding variable.