Language

ModelType Enum

Definition

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.

Android reference for android.adservices.ondevicepersonalization.InferenceInput.Params.MODEL_TYPE_TENSORFLOW_LITE.

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.

Android reference for android.adservices.ondevicepersonalization.InferenceInput.Params.MODEL_TYPE_EXECUTORCH.

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.

Applies to