Inputs & Outputs¶
Understanding input/output handling, data types, shapes, and validation.
🎯 Overview¶
Learn how to work with model inputs and outputs effectively.
📥 Input Handling¶
Data Types¶
Supported types:
- float32, float64
- int32, int64
- bool, string
Shapes¶
inputs:
data:
type: float32
shape: [1, 10] # Fixed: batch=1, features=10
# or
shape: [-1, 10] # Dynamic batch
JSON Format¶
📤 Output Handling¶
Output Format¶
With Labels¶
Returns:
✅ Validation¶
GPUX automatically validates: - Input names match - Data types match - Shapes compatible
💡 Key Takeaways¶
Success
✅ Input data types and shapes ✅ JSON format ✅ Output handling ✅ Automatic validation
Previous: Providers | Next: Preprocessing →