Skip to content
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

Scriptable RandomChoice #7788

Closed
wants to merge 6 commits into from
Closed

Conversation

zshn25
Copy link
Contributor

@zshn25 zshn25 commented Aug 1, 2023

Changed the RandomOrder transform to use torch.randperm and thus make it Scriptable.

Related: #7773

Changed RandomOrder to use torch randperm and thus make it Scriptable
This also removes the restriction of RandomChoice supporting only PIL.Image
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 1, 2023

@zshn25
Copy link
Contributor Author

zshn25 commented Aug 1, 2023

Closing because this combines my previous PR. Will create another independent PR for this: #7791

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