Class ov::op::util::VariableValue#

class VariableValue#

VariableValue stores data and state (reset flag) for a Variable, and provides an interface for changing them.

Public Functions

VariableValue()#

Constructs an uninitialized VariableValue.

void set_reset(bool reset)#

Sets the reset flag to a new state.

Parameters:

reset – The new state of the reset flag.

bool get_reset() const#

Returns the current reset flag state.

VariableValue(const ov::Tensor &value, bool reset)#

Constructor for VariableValue.

Parameters:
  • value – Data for Variable.

  • reset – The current state of the reset flag.

const ov::Tensor &get_state() const#

Returns the current stored data.

void set_state(const ov::Tensor &value)#

Sets new values for Variable.

Parameters:

value – New data for Variable.