-
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
Split tests for transforms v2 and prototype #7278
Conversation
@@ -170,23 +170,6 @@ def wrapper(self): | |||
return wrapper | |||
|
|||
|
|||
def combinations_grid(**kwargs): |
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 moved this to common_utils
since it is no longer just used by the dataset tests.
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 Philip, obviously I can't review individual files, but the main lines above LGTM. One minor Q is about
Create test_datapoints and move everything non-label related there from test_prototype_transforms
Why move transforms-related tests into test_datapoints
? Is there a typo?
Yes. It should say
Will update my top comment. |
Except for Python 3.8, all unittest jobs on macOS are failing due to insufficient resources on the runner: https://app.circleci.com/pipelines/github/pytorch/vision/23382/workflows/05e31fc3-0271-4ad4-8d48-a0b82b3e099f/jobs/1834265?invite=true#step-109-223. We are using vision/.circleci/config.yml.in Line 904 in dfa81ce
which translates to
There is also
Will try this one. |
Unittest on Windows and Linux are green though, so I'' revert 67fdc6d. |
…espace" This reverts commit 67fdc6d.
It seems we don't have access to the larger runner: https://app.circleci.com/pipelines/github/pytorch/vision/23385/workflows/979cac8c-f706-44cc-8a7b-8102a58ebbe4/jobs/1834346
|
Reviewed By: vmoens Differential Revision: D44416542 fbshipit-source-id: 7ed18b0218f1b65aa1f7b016f56777e55207ac53
With the branch cut coming around the
torchvision/prototype
namespace will be removed for the release branch. Right now all the tests for the migratedtorchvision.datapoints
andtorchvision.transforms.v2
unconditionally import fromtorchvision.prototype
and thus will fail. This PR does the following:prototype_common_utils
intocommon_utils
. The only things remain inprototype_common_utils
is the label and one hot label data generationtest_datapoints
and move everything non-label related there fromtest_prototype_datapoints
prototype_transforms_{kernel,dispatcher}_infos
andtest_prototype_transforms_{functional,utils}
into*transforms_v2*
test_transforms_v2
and move most oftest_prototype_transforms
there. Some things like batch or video transforms stay intest_prototype_transforms
test_prototype_transforms_consistency
totest_transforms_v2_consistency
and remove all label related stuff. Furthermore, move test forFixedSizedCrop
totest_prototype_transforms
.cc @vfdev-5 @bjuncek