Skip to content
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

[Web/WebGPU] Can't append execution provider: JS (v1.15.0) #16137

Open
xenova opened this issue May 28, 2023 · 3 comments
Open

[Web/WebGPU] Can't append execution provider: JS (v1.15.0) #16137

xenova opened this issue May 28, 2023 · 3 comments
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@xenova
Copy link

xenova commented May 28, 2023

Describe the issue

When attempting to use the webgpu backend, I get the error:

JS execution provider is not supported in this build. 
Error: Can't append execution provider: JS
    at t.setSessionOptions ...
    at t.createSessionFinalize ...
    at t.createSession ...
    at t.OnnxruntimeWebAssemblySessionHandler.loadModel ...
    at async Object.createSessionHandler
    at d.create

To reproduce

This happens for any model when running with webgpu. See my previous issue (#15719) for steps to reproduce, but just add webgpu as a backend.

Urgency

Not that urgent, but would be nice to get working

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.15.0

Execution Provider

'webgpu' (WebGPU)

@xenova xenova added the platform:web issues related to ONNX Runtime web; typically submitted using template label May 28, 2023
@xenova
Copy link
Author

xenova commented May 28, 2023

Pinging @fs-eire for visibility

@xenova
Copy link
Author

xenova commented May 28, 2023

I might just be missing a simple flag/option, but since the docs aren't up-to-date, it's quite difficult to find what I need to do.

@fs-eire
Copy link
Contributor

fs-eire commented May 30, 2023

docs are being worked on...

the latest way to consume webgpu is using ort.webgpu.min.js , or

import * as ort from 'onnxruntime-web/webgpu';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants