Function TRTSERVER_ServerUnloadModel

Function Documentation

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

Unload the requested model.

Unloading a model that is not loaded on server has no affect and success code will be returned. The function does not return until the model is unloaded or fails to unload. Returned error indicates if model unloaded successfully or not.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • server: The inference server object.

  • model_name: The name of the model.