commit | 898bb36b0156fc6e09659a76a825d057bf04a2d0 | [log] [tgz] |
---|---|---|
author | Scott Todd <scotttodd@google.com> | Tue Feb 08 08:28:10 2022 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 08 08:28:10 2022 -0800 |
tree | 51e88b4e426dcef8ab85f8c411b87e407b325509 | |
parent | 8f820d0e91ffdcfc7bf49604abd66fb6acd2607e [diff] |
Refactor web sample into a Promise-based API using a Web Worker. (#8257) New structure: * `iree_api.js` exposes a Promise-based API to the hosting application in `index.html` * `iree_api.js` creates a worker running `iree_worker.js`, which includes Emscripten's JS code and instantiates the WebAssembly module * messages are passed back and forth between `iree_api.js` and `iree_worker.js` internally This is still running synchronously on the worker for now, but sets us up for running multiple concurrent invocations in the future. This _does_ complicate multithreading a bit, since Emscripten (which we're using to bootstrap) makes some sketchy assumptions about what code is/isn't running in workers and how messages are sent/received. The hope is that once we implement our own threading (instead of using Emscripten's pthreads implementation) that won't be an issue. As a middleware library, we aim to be flexible about how IREE code is linked in and used, so this direction seems worth continuing in.
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.