-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add axes (optional) input to Pad #2178
Conversation
ccbab8b
to
a16c25a
Compare
a16c25a
to
f72e7ba
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2178 +/- ##
===========================================
+ Coverage 91.33% 91.35% +0.01%
===========================================
Files 438 438
Lines 16435 16465 +30
===========================================
+ Hits 15011 15041 +30
Misses 1424 1424
|
b9f0a7a
to
0363676
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions to make throws more informative
src/onnx/parse_pad.cpp
Outdated
if(args.size() >= pos) | ||
{ | ||
auto axes_arg = args.at(pos - 1)->eval(); | ||
check_arg_empty(axes_arg, "PARSE_PAD: pad input must be constant"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_arg_empty(axes_arg, "PARSE_PAD: pad input must be constant"); | |
check_arg_empty(axes_arg, "PARSE_PAD: variable `axes` input not supported"); |
src/onnx/parse_pad.cpp
Outdated
if(args.size() >= 2) | ||
{ | ||
auto pad_arg = args.at(1)->eval(); | ||
check_arg_empty(pad_arg, "PARSE_PAD: pad input must be constant"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_arg_empty(pad_arg, "PARSE_PAD: pad input must be constant"); | |
check_arg_empty(pad_arg, "PARSE_PAD: `pads` input must be constant"); |
Pad version 18 introduced axes, as a way to make pads easier to use. With that, you only need to define the actually changing pads and the axes that they will be used on. This change only affects the way the parsing works, no modification on the migraphx pad op needed.
0363676
to
1788665
Compare
Pad version 18 introduced axes, as a way to make pads easier to use. With that, you only need to define the actually changing pads and the axes that they will be used on.
This change only affects the way the parsing works, no modification on the migraphx pad op needed.
Note: no onnx python unittest to enable, because they fail with
PARSE_PAD: pad input must be constant
Resolves migraphx-benchmark#71