executorch_flutter 0.2.0
executorch_flutter: ^0.2.0 copied to clipboard
ExecuTorch ML inference for Flutter using dart:ffi. Supports Android, iOS, macOS, Linux, Windows, and Web.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate executorch_flutterUse it
The package has the following executables:
$ setup_web
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add executorch_flutterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
executorch_flutter: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:executorch_flutter/executorch_flutter.dart';