C++ exception based error reporting wrapper of API class IVariableState. More...
#include <ie_memory_state.hpp>
Public Member Functions | |
VariableState (std::shared_ptr< IVariableState > pState, details::SharedObjectLoader::Ptr plg={}) | |
constructs VariableState from the initialized std::shared_ptr 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.
|
explicit |
constructs VariableState from the initialized std::shared_ptr
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. |
Blob::CPtr InferenceEngine::VariableState::GetLastState | ( | ) | const |
Returns the value of the variable state.
Wraps IVariableState::GetLastState
std::string InferenceEngine::VariableState::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.
Wraps IVariableState::GetName
Blob::CPtr InferenceEngine::VariableState::GetState | ( | ) | const |
Returns the value of the variable state.
Wraps IVariableState::GetState
void InferenceEngine::VariableState::Reset | ( | ) |
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.
Wraps IVariableState::Reset
void InferenceEngine::VariableState::SetState | ( | Blob::Ptr | state | ) |
Sets the new state for the next inference.
Wraps IVariableState::SetState
state | The current state to set |