rmlPrepareModel
Prepares a model for inference.
All model inputs must be set with rmlSetModelInput() and all model outputs must be set with rmlSetModelOutput() before this function is called.
rml_status rmlPrepareModel( |
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 successfulRML_ERROR_BAD_PARAMETER
if model is invalidRML_ERROR_MODEL_NOT_READY
if any input or output tensor is not specifiedRML_ERROR_OUT_OF_MEMORY
if memory allocation is failedRML_ERROR_INTERNAL
in case of an internal error
To get more details in case of failure, call rmlGetLastError().