onnx / onnx/optimizer

[BUG] Pass "eliminate_shape_gather" results in a dimension size error.

Open
#158 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.