ModelType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies the format of an on-device inference model.
public enum ModelType
type ModelType =
- Inheritance
-
ModelType
Fields
| Name | Value | Description |
|---|---|---|
| Lite | 1 | The model is a tensorflow lite model. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Executorch | 2 | The model is an executorch model. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
The values correspond to the MODEL_TYPE_* constants in Android's InferenceInput.Params. The ModelTypeTensorflowLite and ModelTypeExecutorch fields use this type. SetModelType(Int32) and ModelType use an integer, and the default is TensorFlow Lite. See the model type constants.