Skip to content

Conversation

@HongHongHongL
Copy link
Contributor

Add auto_pad support for conv.

_verify_conv([3, 4, 32, 32, 32], [2, 4, 3, 3, 3]) # group=2


@pytest.mark.parametrize("stride", [1, 2])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we combine the tests into test_conv? Looks like they are almost the same:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got 'Dilation not supported for AutoPadType::SAME_UPPER or AutoPadType::SAME_LOWER' while using onnxruntime. If I add '@pytest.mark.parametrize("auto_pad", ["SAME_UPPER", "SAME_LOWER", "VALID", "NOTSET"])', I should skip dilation=2 for "SAME_UPPER" and "SAME_LOWER". I'm just not sure if this approach is okay.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good

@Hzfengsy Hzfengsy merged commit bb40e39 into apache:main Nov 21, 2024
14 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
* add auto_pad support for conv

* Update test_frontend_onnx.py

* Update onnx_frontend.py

* add common.py

* reformat common.py

* reformat common.py

* combine test into test_conv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants