[BUG] Pass "eliminate_shape_gather" results in a dimension size error.
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 834
- Forks
- 109
- Avg merge
- 6h 55m
- Merged PRs (30d)
- 2
Description
While running eliminate_shape_gather pass for model R-CNN R-50-FPN obtained from ONNX Hub with opset=10.
I receive the error: onnxoptimizer/passes/eliminate_shape_gather.h:48: runTransform: Assertion "indices_val < dims.size()" failed.
Contributor guide
No contributing guide indexed for this repository
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
Start with onnxoptimizer/passes/eliminate_shape_gather.h at line 48 and reproduce the assertion using the R-CNN R-50-FPN model from ONNX Hub with opset 10. Trace the pass's dimension and index handling; done means the model no longer triggers the dimension-size assertion when this pass runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100