Package com.gencior.triton.core.pojo
Class TritonModelMetadata
java.lang.Object
com.gencior.triton.core.pojo.TritonModelMetadata
Encapsulates metadata information about a Triton model.
This class represents model-level metadata including the model name, available versions, platform type, and the schema for input and output tensors. This information describes the expected interface for communicating with a specific model deployed on Triton.
This is an immutable object that wraps the gRPC message ModelMetadataResponse.
Typical Usage:
TritonModelMetadata metadata = client.modelMetadata("inception_v3");
System.out.println("Model: " + metadata.getName());
System.out.println("Platform: " + metadata.getPlatform());
System.out.println("Inputs: " + metadata.getInputs());
System.out.println("Outputs: " + metadata.getOutputs());
- Since:
- 1.0.0
- Author:
- sachachoumiloff
-
Method Summary
Modifier and TypeMethodDescriptionstatic TritonModelMetadatafromProto(GrpcService.ModelMetadataResponse response) Returns an unmodifiable list of input tensor metadata.getName()Returns the name of the model.Returns an unmodifiable list of output tensor metadata.Returns the platform type of the model (e.g., "tensorflow_savedmodel", "tensorrt_plan").Returns an unmodifiable list of available model versions.toString()
-
Method Details
-
fromProto
-
getName
Returns the name of the model.- Returns:
- the model name
-
getVersions
Returns an unmodifiable list of available model versions.The returned list is immutable and cannot be modified.
- Returns:
- an immutable list of version strings
-
getPlatform
Returns the platform type of the model (e.g., "tensorflow_savedmodel", "tensorrt_plan").- Returns:
- the model platform type
-
getInputs
Returns an unmodifiable list of input tensor metadata.Each element describes the expected schema of an input tensor including its name, shape, and data type.
The returned list is immutable and cannot be modified.
- Returns:
- an immutable list of input tensor metadata
-
getOutputs
Returns an unmodifiable list of output tensor metadata.Each element describes the schema of an output tensor including its name, shape, and data type.
The returned list is immutable and cannot be modified.
- Returns:
- an immutable list of output tensor metadata
-
toString
-