-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Assert that there are not duplicate sources for distinct arguments #98738
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
Conversation
Signed-off-by: Edward Z. Yang <ezyang@meta.com> [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98738
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a709b4c: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| assert name in mod._param_name_to_source, f"{name} not found." | ||
| aot_autograd_arg_pos_to_source.append(mod._param_name_to_source[name]) | ||
| source = mod._param_name_to_source[name] | ||
| assert source not in seen_sources, source |
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.
nit: better error message?
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.
i plead "this is an assert error we shouldn't hit it ever lol"
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.
If you're confident this will never happen, I'm good with it!
…rguments" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
|
@pytorchbot merge |
|
Note that @awgu has a test case that trips this assert. I'm landing the assert anyway to help make the ongoing brokenness on master more clear. |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
Signed-off-by: Edward Z. Yang ezyang@meta.com