class ov::VariableState¶
Overview¶
VariableState class. More…
Detailed Documentation¶
VariableState class.
Methods¶
void reset()
Resets internal variable state for relevant infer request to a value specified as default for the corresponding ReadValue node.
std::string get_name() const
Gets the name of the current variable state. If length of an array is not enough, the name is truncated by len, null terminator is inserted as well. variable_id
from the corresponding ReadValue
is used as variable state name.
Returns:
A string representing state name.
Tensor get_state() const
Returns the value of the variable state.
Returns:
A tensor representing a state.
void set_state(const Tensor& state)
Sets the new state for the next inference.
Parameters:
state |
The current state to set. |