New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGPU backend not found in webworkers #7914
Comments
@hujiajie Please help to look at this issue. Thanks. |
The WebGPU spec says "a GPU object is available in the |
WebGPU Working Group has an issue (gpuweb/gpuweb#4197) to track this. |
Thanks for the responses. As gyagp pointed out, it looks like there is already an open feature request to address this. |
WebGPU Android hasn't been released. I didn't follow up the status closely, but you may take a look at this issue: https://bugs.chromium.org/p/dawn/issues/detail?id=286 |
@gyagp Thank you |
System information
Describe the current behavior
Using the following script links, when attempting to load the webGPU backend on a web worker (SharedWorker) I get a "Error: Backend name 'webgpu' not found in registry" error.
If I try loading the same script tags on main thread (not a webworker) it works as expected. Also, the "wasm" and "webgl" backends seems to work as expected.
Describe the expected behavior
SharedWorker should load 'webgpu' backend just like main thread
Standalone code to reproduce the issue
Other info / logs
Uncaught (in promise) Error: Backend name 'webgpu' not found in registry
at e. (engine.js:276:13)
at h (tf.min.js:17:2100)
at Generator. (tf.min.js:17:3441)
at Generator.next (tf.min.js:17:2463)
at u (tf.min.js:17:8324)
at o (tf.min.js:17:8527)
at tf.min.js:17:8586
at new Promise ()
at e. (tf.min.js:17:8467)
at e. (engine.js:293:4)
The text was updated successfully, but these errors were encountered: