-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[contrib][op] fix MultiBoxPrior confusing results if first ratio is not 1.0 #13763
Conversation
@mxnet-label-bot Add [Operator, pr-awaiting-review] |
408f7a1
to
9220e31
Compare
@eric-haibin-lin could you review it? Thanks |
@zhreshold - Thanks. |
9220e31
to
871d250
Compare
@@ -297,6 +297,18 @@ def f(x, a, b, c): | |||
[backward_expected], | |||
rtol=1e-2 if dtype is np.float16 else 1e-5, | |||
atol=1e-2 if dtype is np.float16 else 1e-5) | |||
def test_multibox_prior_op(): | |||
h = 561 | |||
w = 728 |
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.
Is it possible to not hardcode the test values?
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.
the input shape is designed specifically for the network
@eric-haibin-lin ping for review! |
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.
@zhreshold can you please explain why we need the changes in the onnx-tensorrt submodule in this PR?
871d250
to
a7de725
Compare
Should be fine, I've tried rebasing to master |
@zhreshold Could you please provide an update on this PR? It seems no tracking for last 2 weeks. Thanks ! |
edee717
to
be55418
Compare
be55418
to
17aba5e
Compare
17aba5e
to
e4c6c16
Compare
…ot 1.0 (apache#13763) * fix confusion results if ratios are set differently * update 3rdparty
…ot 1.0 (apache#13763) * fix confusion results if ratios are set differently * update 3rdparty
Description
Replace a hardcoded ratio in MultiBoxPrior with whatever user desired.
It was hardcoded to 1 by default, now it allow arbitrary value, even though ratio==1.0 is highly recommended in almost all circumstances for computer vision tasks.
This change does NOT affecting existing examples and use cases.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.