Język

DelegateType Enum

Definition

Identifies the hardware delegate that runs an inference model.

public enum DelegateType
type DelegateType = 
Inheritance
DelegateType

Fields

Name Value Description
Cpu 1

The model inference will run on CPU.

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

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 value corresponds to the DELEGATE_* constants in Android's InferenceInput.Params. The DelegateCpu field uses this type. SetDelegateType(Int32) and DelegateType use an integer, and the default is the CPU.

Applies to