Skip to content

Adding a note to the doc to address the issue #9378 about the non-contiguous tensors of RandomRotate(((90, 90)) - #9428

Merged
zy1git merged 4 commits into
pytorch:mainfrom
zy1git:randomrotate-noncontiguous
Mar 11, 2026
Merged

zy1git merged 4 commits into
pytorch:mainfrom
zy1git:randomrotate-noncontiguous

Conversation

@zy1git

@zy1git zy1git commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Added a note to the RandomRotate class to address issue #9378.

Test plan:
Check the TorchVision document page to make sure the rendering looks good.

@pytorch-bot

pytorch-bot Bot commented Mar 8, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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

@meta-cla meta-cla Bot added the cla signed label Mar 8, 2026
@zy1git
zy1git marked this pull request as draft March 8, 2026 20:50
Comment thread torchvision/transforms/v2/_geometry.py Outdated
the rotation is performed using :func:`torch.rot90` instead of an affine transform.
This is significantly faster, but the output tensor for 90 and 270 degree rotations
may not be contiguous. Users who need contiguous output should call :meth:`~torch.Tensor.contiguous` on the result.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might be best to put that above, before the parameter description. No strong opinion

@zy1git
zy1git marked this pull request as ready for review March 11, 2026 03:09
@zy1git
zy1git merged commit 6d85459 into pytorch:main Mar 11, 2026
22 of 36 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.

2 participants