Repository navigation
Adding a note to the doc to address the issue #9378 about the non-contiguous tensors of RandomRotate(((90, 90)) - #9428
Merged
Conversation
🔗 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. |
zy1git
marked this pull request as draft
March 8, 2026 20:50
NicolasHug
approved these changes
Mar 10, 2026
| 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. | ||
|
|
Member
There was a problem hiding this comment.
might be best to put that above, before the parameter description. No strong opinion
zy1git
marked this pull request as ready for review
March 11, 2026 03:09
|
Hey @zy1git! You merged this PR, but no labels were added. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.