Function TRITONSERVER_ServerModelConfig

Function Documentation

TRITONSERVER_Error *TRITONSERVER_ServerModelConfig(TRITONSERVER_Server *server, const char *model_name, const int64_t model_version, TRITONSERVER_Message **model_config)

Get the configuration of the model being served as a TRITONSERVER_Message object.

The caller takes ownership of the message object and must call TRITONSERVER_MessageDelete to release the object.

Return

a TRITONSERVER_Error indicating success or failure.

Parameters
  • server: The inference server object.

  • model_name: The name of the model to get configuration for.

  • model_version: The version of the model to get configuration for. If -1 then the server will choose a version based on the model’s policy.

  • model_config: Returns the model config message.