feat: added webgpu tensorflow example#579
Draft
MendyBerger wants to merge 1 commit intowasmCloud:v2from
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a TensorFlow.js example running on top of
wasi:webgpuNeeded before merging:
[ ] next wash v2 rc (needs webgpu adapter info)
[ ] replace wit-deps with wkg WebAssembly/wasi-gfx#63
[ ] investigate a memory leak at the end of encoding
[ ] investigate pretty major performance regression while refactor/cleanup
[ ] slightly better ui with example image
Other external PRs that would allow removing some hacks here:
[ ] unjs/unenv#540
[ ] tensorflow/tfjs#8639
[ ] bytecodealliance/ComponentizeJS#324
Other comments
location.searchis polyfiled to an empty string because tf assumes that's it's available.navigator.gpuis first set to empty an object at initialization so that the check if webgpu is available succeeds, and is later at runtime overridden with the real gpu object from wasi-gfx-js