-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Port normalize, linear_transformation, compose, random_apply, gaussian_blur to pytest #4023
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
Port normalize, linear_transformation, compose, random_apply, gaussian_blur to pytest #4023
Conversation
Thanks @vivekkumar7089 ! from a quick look it looks like there were some merging issues: I see no deleted tested, and it seems that there are tests like Would you mind fixing these? |
@NicolasHug, I will fix them out. |
test/test_transforms_tensor.py
Outdated
torch.manual_seed(12) | ||
transformed_tensor_script = scripted_fn(tensor) | ||
assert_equal(transformed_tensor, transformed_tensor_script, msg="{}".format(transforms)) | ||
def test_five_crop(self): |
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 think this (and some other tests) should be left out, as they've been ported to pytest already
Hi @NicolasHug !! |
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 a lot @vivekkumar7089 ! LGTM
Hey @NicolasHug! You approved or merged this PR, but no labels were added. |
Good bot! |
…, gaussian_blur to pytest (#4023) Reviewed By: fmassa Differential Revision: D29097715 fbshipit-source-id: 4e6b3a8f5fc82f45bd89223f86adb077be9ab576
Refactor Group E as mentioned in #3987