Manages data for reset operations. More...
#include <ie_imemory_state.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IVariableState > |
A shared pointer to the IVariableState interface. | |
Public Member Functions | |
virtual StatusCode | GetName (char *name, size_t len, ResponseDesc *resp) const noexcept=0 |
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... | |
virtual StatusCode | Reset (ResponseDesc *resp) noexcept=0 |
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node. More... | |
virtual StatusCode | SetState (Blob::Ptr newState, ResponseDesc *resp) noexcept=0 |
Sets the new state for the next inference. More... | |
virtual StatusCode | GetLastState (Blob::CPtr &state, ResponseDesc *resp) const noexcept |
Returns the value of the variable state. More... | |
virtual StatusCode | GetState (Blob::CPtr &state, ResponseDesc *resp) const noexcept=0 |
Returns the value of the variable state. More... | |
Manages data for reset operations.
|
inlinevirtualnoexcept |
Returns the value of the variable state.
state | A reference to a blob containing a variable state |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
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.
name | preallocated buffer for receiving name |
len | Length of the buffer |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
Returns the value of the variable state.
state | A reference to a blob containing a variable state |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
Sets the new state for the next inference.
This method can fail if Blob size does not match the internal state size or precision
newState | The data to use as new state |
resp | Optional: pointer to an already allocated object to contain information in case of failure |