manages data for reset operations
More...
#include <ie_imemory_state.hpp>
manages data for reset operations
§ GetLastState()
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.
- Parameters
-
lastState | |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
- Returns
- Status code of the operation: InferenceEngine::OK (0) for success
§ GetName()
virtual StatusCode InferenceEngine::IMemoryState::GetName |
( |
char * |
name, |
|
|
size_t |
len, |
|
|
ResponseDesc * |
resp |
|
) |
| const |
|
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.
- Parameters
-
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 |
- Returns
- Status code of the operation: InferenceEngine::OK (0) for success
§ Reset()
reset internal memory state for relevant iexecutable network, to a value specified in SetState
- Parameters
-
resp | Optional: pointer to an already allocated object to contain information in case of failure |
- Returns
- Status code of the operation: InferenceEngine::OK (0) for success*
§ SetState()
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
- Parameters
-
newState | is the data to use as base state |
resp | Optional: pointer to an already allocated object to contain information in case of failure |
- Returns
- Status code of the operation: InferenceEngine::OK (0) for success
The documentation for this interface was generated from the following file: