Output Configuration¶
Output specifications in gpux.yml.
Overview¶
The outputs section defines model output specifications.
outputs:
- name: string # Required: Output name
type: string # Required: Data type
shape: [int] # Optional: Tensor shape
labels: [string] # Optional: Class labels
description: string # Optional: Description
Fields¶
name (required)¶
Output name matching the model's output.
- Type:
string - Required: Yes
type (required)¶
Data type of the output tensor.
- Type:
string - Required: Yes
- Values:
float32,float64,int32,int64,uint8,bool,string
shape¶
Tensor shape specification.
- Type:
list[int] - Required: No
- Dynamic: Use
-1for dynamic dimensions
outputs:
- name: logits
type: float32
shape: [1, 2] # Fixed shape
- name: boxes
type: float32
shape: [-1, 4] # Dynamic number of boxes
labels¶
Class labels for classification outputs.
- Type:
list[string] - Required: No
description¶
Human-readable description.
- Type:
string - Required: No
Examples¶
Classification Output¶
outputs:
- name: logits
type: float32
shape: [1, 2]
labels: [negative, positive]
description: Sentiment classification logits
Detection Outputs¶
outputs:
- name: boxes
type: float32
shape: [-1, 4]
description: Bounding boxes [x1, y1, x2, y2]
- name: scores
type: float32
shape: [-1]
description: Confidence scores
- name: classes
type: int64
shape: [-1]
description: Class indices
Multi-Label Classification¶
outputs:
- name: probabilities
type: float32
shape: [1, 1000]
labels: [cat, dog, bird, ...] # 1000 ImageNet classes
Alternative Syntax¶
Dict-style outputs:
outputs:
logits:
type: float32
shape: [1, 2]
labels: [negative, positive]
embeddings:
type: float32
shape: [1, 768]