-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
[DataPipe] Lazily generate exception message for performance #78673
Conversation
[ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 70fa3e8 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
[ghstack-poisoned]
@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@pytorchbot merge -g |
Pull Request resolved: #78673 Approved by: https://github.com/ejguan ghstack-source-id: 24087821ebe7833ece1e8a7b7cb6802e14070dfd
Pull Request resolved: #78673 Approved by: https://github.com/ejguan
Pull Request resolved: #78673 Approved by: https://github.com/ejguan
Summary: Pull Request resolved: #78673 Approved by: https://github.com/ejguan Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/575c42028727db4428dc6bcd03c8631f7798b9d3 Reviewed By: ejguan Differential Revision: D36830075 Pulled By: NivekT fbshipit-source-id: 6bd07a76aa4718364e50b7b9cca4d011067874d7
Stack from ghstack:
With this PR, exception message for
IterDataPipe
are lazily generated as needed rather than at every call. This greatly improves the performance while iteratingIterDataPipe
.I plan to cherry-pick this for 1.12 to prevent performance regression.
Differential Revision: D36830075