microsoft / microsoft/onnxruntime
[WebGL] cannot resolve operator 'ConstantOfShape' with opsets: ai.onnx v12
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 179
Description
Is your feature request related to a problem? Please describe.
I'm trying to get OpenAI's CLIP model working with the WebGL backend. The vision model works with wasm, but
System information
- ONNX Runtime version (you are using): 1.10.0
Describe the solution you'd like
Implementation of ConstantOfShape for WebGL (assuming that would solve the error mentioned in the title).
Describe alternatives you've considered
The wasm backend is one alternative, but I'm assuming that WebGL will be significantly faster.
Additional context
Here's a demo showing the error. Be sure to switch the "backend" drop-down menu to WebGL.
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in the linked openai-clip-js demo with WebGL on ONNX Runtime 1.10.0, then trace how the WebGL backend resolves ConstantOfShape for ai.onnx v12. Done means the CLIP vision model loads with the WebGL backend without the reported operator-resolution error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- computer-graphics, machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100