Function TRTSERVER_ServerOptionsSetModelRepositoryPath

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerOptionsSetModelRepositoryPath(TRTSERVER_ServerOptions *options, const char *model_repository_path)

Set the model repository path in a server options.

The path must be the full absolute path to the model repository. This function can be called multiple times with different paths to set multiple model repositories. Note that if a model is not unique across all model repositories at any time, the model will not be available.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • options: The server options object.

  • model_repository_path: The full path to the model repository.