TargetPlatform
Enums · AiDotNet.Enums
Target hardware platforms for model deployment and optimization.
How It Works
For Beginners: Different devices and platforms have different hardware capabilities. This enum helps you specify where your AI model will run, allowing the library to optimize the model specifically for that platform. For example:
- CPU: Traditional computer processors (slowest but most compatible)
- GPU: Graphics cards (much faster for AI workloads)
- TensorRT: NVIDIA’s optimized AI inference engine (fastest for NVIDIA GPUs)
- Mobile: Smartphones and tablets (limited power, needs optimization)
- Edge: Small devices like Raspberry Pi or Arduino (very limited resources)
Fields
| Field | Summary |
|---|---|
TargetPlatform CPU |
Generic CPU - most compatible but slower for AI workloads |
TargetPlatform CoreML |
iOS with CoreML - Apple’s machine learning framework |
TargetPlatform Edge |
Edge devices (Raspberry Pi, etc.) - very limited resources |
TargetPlatform GPU |
Generic GPU - faster than CPU for AI computations |
TargetPlatform Mobile |
Mobile devices (iOS/Android) - requires size and power optimizations |
TargetPlatform NNAPI |
Android with NNAPI - Android’s Neural Networks API |
TargetPlatform TFLite |
TensorFlow Lite - lightweight models for mobile and edge devices |
TargetPlatform TensorRT |
NVIDIA GPU with TensorRT - optimized for NVIDIA GPUs |
TargetPlatform WebAssembly |
WebAssembly - run AI models in web browsers |
int value__ |