rmlResetModelStates

Resets internal model states to their initial values.

All model inputs must be set with rmlSetModelInput() and all model outputs must be set with rmlSetModelOutput() before this function is called.

rml_status rmlResetModelStates(

rml_model model)

API

Main

Parameters

Parameter

Input/Output

Description

model

input

A valid model handle.

Return and Status Codes

Returns one of the following status codes:

  • RML_OK if the operation is successful

  • RML_ERROR_BAD_PARAMETER if model is invalid

  • RML_ERROR_MODEL_NOT_READY if any input or output tensor is not specified

  • RML_ERROR_INTERNAL in case of an internal error

To get more details in case of failure, call rmlGetLastError().