Skip to content

specify rotation direction in RandomRotation docs - #9351

Merged
zy1git merged 3 commits into
pytorch:mainfrom
ribbon-otter:issue8828
Mar 19, 2026
Merged

zy1git merged 3 commits into
pytorch:mainfrom
ribbon-otter:issue8828

Conversation

@ribbon-otter

Copy link
Copy Markdown
Contributor

To alert the general public to the potentially counterintuitive behaviour positive numbers meaning rotation in the anticlockwise direction, this pull request explicitly states [90, 90] rotates 90 degrees anticlockwise, and the reader can presumably deduce that this means that [0, 90] means a random rotation between 0 and 90 degrees anticlockwise.

fixes issue#8828

I've marked this as a draft, so I can check to see that the documentation renders correctly, before fully submitting it.

@pytorch-bot

pytorch-bot Bot commented Jan 23, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 912b0c7 with merge base a025873 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla Bot added the cla signed label Jan 23, 2026
@ribbon-otter
ribbon-otter marked this pull request as ready for review March 17, 2026 22:56
@ribbon-otter

Copy link
Copy Markdown
Contributor Author

It has been 52 days and the docs still haven't rendered in the CI. So I am marking this as ready for review since it seems unlikely that I will be able to check the CI rendering first.

@zy1git

zy1git commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

@ribbon-otter Thanks for the PR! The CI docs preview link is working now. You can also build the docs locally by following the guide.

@zy1git
zy1git merged commit 6285457 into pytorch:main Mar 19, 2026
62 checks passed
@github-actions

Copy link
Copy Markdown

Hey @zy1git!

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

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.

For degrees argument of RandomRotation(), [90.0, 90.0] should rotate clockwise and [-90.0, -90.0]) should rotate anticlockwise

3 participants