microsoft / microsoft/onnxruntime

[WebGL] cannot resolve operator 'ConstantOfShape' with opsets: ai.onnx v12

Open
#10,031 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request platform:web
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.