Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Context-based graph execution methods for different threading models. (…
…#257) * Context-based graph execution methods for different threading models. * Fixing multiple refs on Promise type. * Fix up over-aggressive search/replace. * Remove `MLCommandEncoder` and simplify `MLContext` creation with params. * Fix missing graph param * Fix build break due to merge conflict. * Fix build break: Disambiguate the WebIDL link to {{Promise}} definition. * GPU support on sync execution (limited to worker thread). Default context only supports CPU inputs and outputs (automatic upload/download). Reintroduce MLCommandEncoder for WebGPU interop. * Remove undefined `MLResource` type. * Remove references to undefined MLInput type. * Remove outdated note section in the computeAsync description. Further clarify graph initialization stage and remove the unnecessary second param. * Add a note section describing when graph initialization occurs on a default GPU context. * Adjust some wordings on the note section of `MLGraphBuilder.build` method.
- Loading branch information