Function TRITONSERVER_ServerModelMetadata

Function Documentation

TRITONSERVER_Error *TRITONSERVER_ServerModelMetadata(TRITONSERVER_Server *server, const char *model_name, const int64_t model_version, TRITONSERVER_Message **model_metadata)

Get the metadata 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.

  • model_metadata: Returns the model metadata message.