-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[ONNX] Make unsupported node analysis result deterministic #105231
Conversation
Replace `Set` with `Dict` for node.target to keep insertion order. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/105231
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 2 PendingAs of commit a50a775: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Replace `Set` with `Dict` for node.target to keep insertion order. ghstack-source-id: 761f821f712be56b64cd7a4531c3d903471d803b Pull Request resolved: #105231
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.
Why not a list? searching a list is linear, which is not great. But that pass runs once, so this might be fine.
Using dict wastes memory with None
entries for each key. In terms of clarity, it is odd to have a dict which only the key is useful.
@pytorchbot merge |
Afaik this is the idiomatic way if you want an |
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):
Replace
Set
withDict
for node.target to keep insertion order.Fixes #105200