Function TRITONSERVER_ServerModelConfig¶
Defined in File tritonserver.h
Function Documentation¶
-
TRITONSERVER_Error *
TRITONSERVER_ServerModelConfig
(TRITONSERVER_Server *server, const char *model_name, const int64_t model_version, const uint32_t config_version, TRITONSERVER_Message **model_config)¶ Get the configuration of a model 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.model_version
: The version of the model. If -1 then the server will choose a version based on the model’s policy.config_version
: The model configuration will be returned in a format matching this version. If the configuration cannot be represented in the requested version’s format then an error will be returned. Currently only version 1 is supported.model_config
: Returns the model config message.