Radeon ProRender


Runs 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 rmlInfer( rml_model model);




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_OUT_OF_MEMORY if memory allocation is failed
  • RML_ERROR_INTERNAL in case of an internal error

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