Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relax][Frontend][Onnx] Add auto_pad support for conv #17536

Merged
merged 7 commits into from
Nov 21, 2024

Conversation

HongHongHongL
Copy link
Contributor

Add auto_pad support for conv.

@@ -1022,6 +1022,57 @@ def _verify_conv(input_shape, weight_shape):
_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
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