manages data for reset operations More...
#include <ie_imemory_state.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IMemoryState > |
A shared pointer to the IMemoryState interface. | |
Public Member Functions | |
virtual StatusCode | GetName (char *name, size_t len, ResponseDesc *resp) const noexcept=0 |
Gets name of current memory state, if length of array is not enough name is truncated by len, null terminator is inserted as well. More... | |
virtual StatusCode | Reset (ResponseDesc *resp) noexcept=0 |
reset internal memory state for relevant iexecutable network, to a value specified in SetState More... | |
virtual StatusCode | SetState (Blob::Ptr newState, ResponseDesc *resp) noexcept=0 |
Sets the new state that is used for all future Reset() operations as a base. More... | |
virtual StatusCode | GetLastState (Blob::CPtr &lastState, ResponseDesc *resp) const noexcept=0 |
returns the value of the last memory state. More... | |
manages data for reset operations
|
pure virtualnoexcept |
returns the value of the last memory state.
Since we roll memory after each infer, we can query the input state always and still get the last state.
lastState | |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
Gets name of current memory state, if length of array is not enough name is truncated by len, null terminator is inserted as well.
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 |
reset internal memory state for relevant iexecutable network, to a value specified in SetState
resp | Optional: pointer to an already allocated object to contain information in case of failure |
|
pure virtualnoexcept |
Sets the new state that is used for all future Reset() operations as a base.
This method can fail if Blob size does not match the internal state size or precision
newState | is the data to use as base state |
resp | Optional: pointer to an already allocated object to contain information in case of failure |