Function TRTSERVER_ServerOptionsSetStartupModel

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerOptionsSetStartupModel(TRTSERVER_ServerOptions *options, const char *model_name)

Set the model to be loaded at startup in a server options.

The model must be present in one, and only one, of the specified model repositories. This function can be called multiple times with different model name to set multiple startup models. Note that it only takes affect on TRTSERVER_MODEL_CONTROL_EXPLICIT mode.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • options: The server options object.

  • mode_name: The name of the model to load on startup.