Function TRTSERVER_InferenceRequestOptionsSetId

Function Documentation

TRTSERVER_Error *TRTSERVER_InferenceRequestOptionsSetId(TRTSERVER_InferenceRequestOptions *request_options, uint64_t id)

Set the ID for the request in a request options.

The response of the request will contain the same ID. The request sender can use the ID to correlate the response to corresponding request if needed. The default value is 0.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • request_options: The request options object.

  • id: The ID.