Skip to content

Pass "eliminate_duplicate_initializer" fails on R-CNN model. #172

Open
@researcher-no-name

Description

@researcher-no-name

While using the pass eliminate_duplicate_initializer to optimize the model Faster R-CNN R-50-FPN-qdq of opset=12 from ONNX Model Hub, I encounter the following error:

File "<path_to_onnx_optimizer>/onnxoptimizer/main.py", line 15, in \n main()\n File "<path_to_onnx_optimizer>/onnxoptimizer_main.py", line 76, in main\n model = onnxoptimizer.optimize(model=model, passes=passes, fixed_point=args.fixed_point)\n File "<path_to_onnx_optimizer>//onnxoptimizer/init.py", line 46, in optimize\n optimized_model_str = C.optimize(model_str, passes)\nRuntimeError: <path_to_onnx_optimizer>/onnxoptimizer/third_party/onnx/onnx/common/ir.h:1372: eraseOutput: Assertion "outputs_[i]->uses().empty()" failed.'

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