TargetPlatform class
Contains information about a target platform that you want your model to run
on, such as OS, architecture, and accelerators. It is an alternative of
TargetDevice
.
Constructors
- TargetPlatform({required TargetPlatformArch arch, required TargetPlatformOs os, TargetPlatformAccelerator? accelerator})
-
TargetPlatform.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accelerator → TargetPlatformAccelerator?
-
Specifies a target platform accelerator (optional).
final
- arch → TargetPlatformArch
-
Specifies a target platform architecture.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- os → TargetPlatformOs
-
Specifies a target platform OS.
final
- 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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited