Dart bindings for ExecuTorch, plus a parity gate over the exported goldens #21624
tonytonycoder11
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built a Dart and Flutter layer over ExecuTorch, out at 1.0 last week:
https://github.com/NaCode-Studios/Fluttorch (Apache 2.0)
The bindings are the boring half. The other half is that
fluttorch-exportwrapstorch.exportand writes the
.pte, a manifest, and reference outputs from real validation inputs, alltogether. Those outputs replay in the Dart test suite, and the tolerance comes from the recipe
and precision the manifest recorded instead of a number picked by hand:
That gate is why I wrote my own
dart:ffibinding rather than using an existing one. It needs abackend pinned at load, repeatable execution, activation taps, and output buffers the caller owns.
Two questions:
report which output moved, not which layer.
column. Is that the right default, or is there a lowering flag I've missed?
Separately: I have a model that lowers fine and then fails to execute, identically under
ExecuTorch's own Python runtime. Worth opening an issue with a repro?
All reactions