Skip to content

Raise validation error when no transforms passed to RandomApply, RandomChoice and RandomOrder. #9130

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

Merged
merged 4 commits into from
Aug 8, 2025

Conversation

GdoongMathew
Copy link
Contributor

@GdoongMathew GdoongMathew commented Jun 28, 2025

Raise validation error when no transforms passed to RandomApply, RandomChoice and RandomOrder.

fix #9022

cc @vfdev-5

Copy link

pytorch-bot bot commented Jun 28, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9130

Note: Links to docs will display an error until the docs builds have been completed.

❌ 15 New Failures, 15 Cancelled Jobs

As of commit 196524f with merge base b818d32 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@GdoongMathew
Copy link
Contributor Author

A friendly ping to @NicolasHug for a code review.

@NicolasHug NicolasHug changed the title fix #9022 Raise validation error when no transforms passed to RandomApply, RandomChoice and RandomOrder. Aug 8, 2025
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the PR @GdoongMathew . Failures seem unrelated, merging

@NicolasHug NicolasHug merged commit dffbf2d into pytorch:main Aug 8, 2025
42 of 46 checks passed
Copy link

github-actions bot commented Aug 8, 2025

Hey @NicolasHug!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

facebook-github-bot pushed a commit that referenced this pull request Aug 8, 2025
…ply, RandomChoice and RandomOrder. (#9130)

Summary: Co-authored-by: Nicolas Hug <[email protected]>

Reviewed By: scotts

Differential Revision: D79882551

fbshipit-source-id: b3a14a217134ceef12a42aa1436b532ca7c51827
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting a list of no transforms to transforms argument of RandomApply() gets the indirect error message
3 participants