class InferenceEngine::VariableState¶
Overview¶
VariableState class. More…
#include <ie_memory_state.hpp>
class VariableState
{
public:
// construction
VariableState();
VariableState(const VariableState& other);
VariableState(VariableState&& other);
// methods
VariableState& operator = (const VariableState& other);
VariableState& operator = (VariableState&& other);
void Reset();
std::string GetName() const;
Blob::CPtr GetState() const;
void SetState(Blob::Ptr state);
};
Detailed Documentation¶
VariableState class.
Construction¶
VariableState()
Default constructor.
VariableState(const VariableState& other)
Default copy constructor.
Parameters:
other |
other VariableState object |
VariableState(VariableState&& other)
Default move constructor.
Parameters:
other |
other VariableState object |
Methods¶
VariableState& operator = (const VariableState& other)
Default copy assignment operator.
Parameters:
other |
other VariableState object |
Returns:
reference to the current object
VariableState& operator = (VariableState&& other)
Default move assignment operator.
Parameters:
other |
other VariableState object |
Returns:
reference to the current object
void Reset()
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.
std::string GetName() const
Gets name of current variable state, if length of array is not enough name is truncated by len, null terminator is inserted as well. As variable state name variable_id
from according ReadValue
used.
Returns:
A string representing a state name
Blob::CPtr GetState() const
Returns the value of the variable state.
Returns:
A blob representing a state
void SetState(Blob::Ptr state)
Sets the new state for the next inference.
Parameters:
state |
The current state to set |