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 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 metadata for.

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

  • model_metadata: Returns the model metadata message.