-
Notifications
You must be signed in to change notification settings - Fork 7k
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 manual opcheck tests for roi ops #8144
Conversation
} | ||
} | ||
} | ||
"data": {} |
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.
This file still needs to exist even if it's empty, unfortunately.
@@ -610,15 +610,6 @@ def test_jit_boxes_list(self): | |||
self._helper_jit_boxes_list(model) | |||
|
|||
|
|||
optests.generate_opcheck_tests( | |||
testcase=TestRoIAlign, |
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.
I moved the roi_align opcheck tests to the function below
@@ -676,6 +667,43 @@ def test_boxes_shape(self): | |||
self._helper_boxes_shape(ops.ps_roi_align) | |||
|
|||
|
|||
@pytest.mark.parametrize( |
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.
This could be in RoIOpTester
as a base test, but I personally find it really hard to figure out what is being tested with such inheritance structure. So I'm opting for a self-contained parametrized test here.
(The test inheritance structure predates the adoption of pytest.)
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.
Thanks!
Reviewed By: vmoens Differential Revision: D52539014 fbshipit-source-id: 6fc2eb107216f1c3933e199a75dc51e620d7c093
Closes #8055 and specitically addresses #8055 (comment)
cc @pmeier