C++ exception based error reporting wrapper of API class IVariableState. More...
#include <ie_memory_state.hpp>
Public Member Functions | |
VariableState (IVariableState::Ptr pState, details::SharedObjectLoader::Ptr plg={}) | |
constructs VariableState from the initialized shared_pointer More... | |
void | Reset () |
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node. More... | |
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. More... | |
Blob::CPtr | GetState () const |
Returns the value of the variable state. More... | |
Blob::CPtr | GetLastState () const |
Returns the value of the variable state. More... | |
void | SetState (Blob::Ptr state) |
Sets the new state for the next inference. More... | |
C++ exception based error reporting wrapper of API class IVariableState.
|
inlineexplicit |
constructs VariableState from the initialized shared_pointer
pState | Initialized shared pointer |
plg | Optional: Plugin to use. This is required to ensure that VariableState can work properly even if plugin object is destroyed. |
|
inline |
Returns the value of the variable state.
Wraps IVariableState::GetLastState
|
inline |
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.
Wraps IVariableState::GetName
|
inline |
Returns the value of the variable state.
Wraps IVariableState::GetState
|
inline |
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.
Wraps IVariableState::Reset
|
inline |
Sets the new state for the next inference.
Wraps IVariableState::SetState
state | The current state to set |