-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Add manual opcheck tests for roi ops #8144
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
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.
|
|
||
|
|
||
| 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
| 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.)
pmeier
left a comment
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