Skip to content

Pass "eliminate_consecutive_idempotent_ops" succeeds but model gives an incompatible shape error upon run. #171

@nick-louloudakis

Description

@nick-louloudakis

While optimizing a number of Mask and Faster R-CNN models on opset=12 from the ONNX Model Hub, the optimizer generated the models, but I encountered the following error when applying the eliminate_consecutive_idempotent_ops error when I run them:

[ONNXRuntimeError] : 1 : FAIL : Node (<NODE>) Op (Reshape) [ShapeInferenceError] Dimension could not be inferred: incompatible shapes

Where is:
2953 for the Mask models: Mask R-CNN R-50-FPN-int8, Mask R-CNN R-50-FPN-qdq, Mask R-CNN R-50-FPN-fp32.
2794 for the Faster models: Faster R-CNN R-50-FPN-int8, Faster R-CNN R-50-FPN-qdq, and Faster R-CNN R-50-FPN-fp32.

The original models run without problems. By visual inspection using Netron, I believe something is mishandled with the concatenation operations preceding these nodes in the models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions