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

[PoC] add support for passing rng to transforms #7445

Closed
wants to merge 4 commits into from

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 22, 2023

Closes #7027.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 22, 2023

🔗 Helpful Links

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

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.

@pmeier
Copy link
Collaborator Author

pmeier commented Jul 12, 2023

As discussed in #7027, passing a generator to forward is impossible when using the transforms the regular way through a dataset. Meaning, we need to have it as an instance attribute.

If we go that route, there is little to salvage here.

@pmeier pmeier closed this Jul 12, 2023
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.

Transforms V2 proposal: Enabling reproducible workflows via local RNGs
2 participants