-
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
[pytest port] test{crop_five, crop_ten, resize, resized_crop} in test_transforms_tensor #4010
[pytest port] test{crop_five, crop_ten, resize, resized_crop} in test_transforms_tensor #4010
Conversation
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've made a couple of comments. Since the code has been heavily refactored here, please feel free to ask any questions or doubts for clarification.
Again the failing |
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 should be ready now. Thanks a tonne @datumbox @NicolasHug for all the help.
If everything goes green and if this looks good to you, I'll fix the merge conflicts with master and update the branch for a merge. As a last thing I'll just club all the resize tests into a single class.
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.
Great work @AnirudhDagar , thanks a lot!
I made a few comments but this looks good
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 @AnirudhDagar ! I'll merge when green
Looks like |
Thanks again for the detailed reviews and guidance. Enjoyed this! :)) |
…} in test_transforms_tensor (#4010) Reviewed By: fmassa Differential Revision: D29097743 fbshipit-source-id: 0c8900d69c8092abfdf00d6abd3bee6c8db1d8e5
This PR ports group C from #3987. All the tests below run on
cpu_and_gpu
and have been parametrized accordingly._test_op_list_output
,test_five_crop
,test_ten_crop
by parametrizing overfunc
,method
,out_length
andfn_kwargs
.Ps. @NicolasHug I kept this PR separate from #4008 to make the reviews manageable. Please don't worry about merge conflicts. I'll fix those as soon as the other PR is merged.