Function TRTSERVER_ServerLoadModel

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerLoadModel(TRTSERVER_Server *server, const char *model_name)

Load the requested model or reload the model if it is already loaded.

The function does not return until the model is loaded or fails to load. Returned error indicates if model loaded successfully or not.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • server: The inference server object.

  • model_name: The name of the model.