Delegate enum
The processor a task runs on, chosen when the task is created and fixed until it is disposed. One enum serves vision, text and audio.
Values
- cpu → const Delegate
-
Google's CPU inference, the default on every platform.
- gpu → const Delegate
-
Google's GPU inference: Metal on Apple platforms, OpenGL ES on Linux and Android, WebGL 2 in browsers. Where a platform's runtime has no GPU path for a task, its capability query says so and creation fails with the reason; the package never falls back to the CPU on its own.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited