Class ov::op::v3::ReadValue#

class ReadValue : public ov::op::util::ReadValueBase#

ReadValue operation creates the variable with variable_id and returns value of this variable.

Public Functions

ReadValue(const Output<Node> &init_value, const std::string &variable_id)#

Constructs a ReadValue operation.

Parameters:
  • init_valueNode that produces the input tensor.

  • variable_id – identificator of the variable to create.

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

inline virtual std::string get_variable_id() const override#

Returns the identifier of corresponding variable.