Skip to content

Error: convert pytorch int8 maxpool to onnx to c2 #33932

@Pluto1944

Description

@Pluto1944

🐛 Bug

I get the same error when I try to convert pytorch int8 maxpool to onnx to c2.

To Reproduce

Steps to reproduce the behavior:

  1. I run torch2onnx_maxpool.py(the code list bellow) to get onnx and get this warning:
    "symbolic_helper.py:176: UserWarning: ONNX export failed on max_pool2d because input size not accessible not supported"

  2. when I run run_onnx_maxpool.py to load onnx model, I get this error
    "Exception: Don't know how to translate op max_pool2d"

What should I do? The code is here
https://github.com/boydyang1/test_pytorch_int8_maxpool/blob/master/torch2onnx_maxpool.py
https://github.com/boydyang1/test_pytorch_int8_maxpool/blob/master/run_onnx_maxpool.py
@supriyar @houseroad @suo

cc @houseroad @spandantiwari @lara-hdr @BowenBao @neginraoof

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNot as big of a feature, but technically not a bug. Should be easy to fixmodule: onnxRelated to torch.onnxtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions