TFLiteTargetSpec
Models & Types · AiDotNet.Deployment.Mobile.TensorFlowLite
TensorFlow Lite target specification with detailed platform requirements.
For Beginners
This class specifies what hardware and software requirements your TFLite model needs to run. Use this to ensure your model works on your target devices.
Constructors
| Constructor | Summary |
|---|---|
TFLiteTargetSpec() |
Properties
| Property | Summary |
|---|---|
TFLiteTargetSpec Default { get; } |
Gets the default specification (CPU-only, wide compatibility). |
TFLiteTargetType TargetType { get; set; } |
Gets or sets the target type. |
bool SupportEdgeTpu { get; set; } |
Gets or sets whether to support Edge TPU acceleration (default: false). |
bool SupportGpu { get; set; } |
Gets or sets whether to support GPU acceleration (default: false). |
bool SupportHexagonDsp { get; set; } |
Gets or sets whether to support Hexagon DSP acceleration (default: false). |
int AndroidMinSdkVersion { get; set; } |
Gets or sets the minimum Android SDK version required (default: 21 = Android 5.0). |
string MinimumIosVersion { get; set; } |
Gets or sets the minimum iOS version for iOS targets (default: “12.0”). |
Methods
| Method | Summary |
|---|---|
TFLiteTargetSpec ForAndroidNnapi() |
Creates a spec for Android with NNAPI support. |
TFLiteTargetSpec ForEdgeTpu() |
Creates a spec for Google Coral/Edge TPU devices. |
TFLiteTargetSpec ForQualcomm() |
Creates a spec for Qualcomm Snapdragon devices. |