Skip to content

Conversation

datumbox
Copy link
Contributor

@datumbox datumbox commented Dec 8, 2020

randint()'s upper bound is exclusive, so we need to bump the 255 to 256 to ensure transformation methods behave correctly for all values.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Vasilis, your IDE is perfect :) Thanks

@datumbox
Copy link
Contributor Author

datumbox commented Dec 8, 2020

@vfdev-5 Most impactful PR of the entire release right there... 🤣

@datumbox datumbox merged commit 325dfd6 into pytorch:master Dec 8, 2020
@datumbox datumbox deleted the bugfix/256_max_in_tests branch December 8, 2020 13:12
facebook-github-bot pushed a commit that referenced this pull request Dec 8, 2020
Reviewed By: datumbox

Differential Revision: D25396708

fbshipit-source-id: 7aa27cd76f135c0ccca6b8412fec9388b3df0919
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.

3 participants