-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[export] Support "custom" metadata field. #131912
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/131912
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 874879d with merge base 2fde193 ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
|
This special field behavior should be documented somewhere... |
SherlockNoMad
left a comment
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.
lgtm with comment.
Do you plan to add the register_custom_field() API for nn.Module next?
@SherlockNoMad no I don't plan to work on it in the near future. |
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
597243e to
dd91cbf
Compare
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
dd91cbf to
552d2e1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
552d2e1 to
f646e4b
Compare
Summary: Pull Request resolved: pytorch#131912 Add a special field in Graph and Node level metadata called "custom" which should be mapped to a json-serializable object, and we guarantee this field should be always preversed across the following transformations: 1. copy/deepcopy 2. run_decompositions() 3. serialization 4. re-exporting Test Plan: :test_export -- -r custom_tag Reviewed By: angelayi Differential Revision: D60291839
f646e4b to
e6a04d2
Compare
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
Summary: Pull Request resolved: pytorch#131912 Add a special field in Graph and Node level metadata called "custom" which should be mapped to a json-serializable object, and we guarantee this field should be always preversed across the following transformations: 1. copy/deepcopy 2. run_decompositions() 3. serialization 4. re-exporting Test Plan: :test_export -- -r custom_tag Reviewed By: angelayi Differential Revision: D60291839
e6a04d2 to
4e5755f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
Summary: Pull Request resolved: pytorch#131912 Add a special field in Graph and Node level metadata called "custom" which should be mapped to a json-serializable object, and we guarantee this field should be always preversed across the following transformations: 1. copy/deepcopy 2. run_decompositions() 3. serialization 4. re-exporting Test Plan: :test_export -- -r custom_tag Reviewed By: angelayi Differential Revision: D60291839
|
This pull request was exported from Phabricator. Differential Revision: D60291839 |
|
@pytorchbot merge -f 'Landed internally' (Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
lint Fixes #ISSUE_NUMBER Pull Request resolved: #133428 Approved by: https://github.com/aaronenyeshi
Summary: With #131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
…eld" Summary: With #131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
…eld" Summary: With #131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: With #131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: b6af5d0 Pull Request resolved: #134040
Summary: With #131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: Pull Request resolved: #134040 Approved by: https://github.com/tarun292
…h#134040) Summary: With pytorch#131912 we now have a "custom" field in node.meta that can be preserved in * copy/deepcopy * run_decompositions() * serialization * re-exporting So we refactored numeric debugger to use this. Test Plan: python test/test_quantization.py TestNumericDebugger Reviewers: Subscribers: Tasks: Tags: Pull Request resolved: pytorch#134040 Approved by: https://github.com/tarun292
Summary: Improves and enables a commented out test originally introduced in #131912 In `test_custom_tag_metadata_re_export()`, we check the added "custom" metadata to given nodes is preserved and not copied to other nodes after re-exporting Reviewed By: zhxchen17 Differential Revision: D62880574 Pulled By: yiming0416
Improves and enables a commented out test originally introduced in #131912 In `test_custom_tag_metadata_re_export()`, we check the added "custom" metadata to given nodes is preserved and not copied to other nodes after re-exporting Pull Request resolved: #136048 Approved by: https://github.com/zhxchen17
Improves and enables a commented out test originally introduced in pytorch#131912 In `test_custom_tag_metadata_re_export()`, we check the added "custom" metadata to given nodes is preserved and not copied to other nodes after re-exporting Pull Request resolved: pytorch#136048 Approved by: https://github.com/zhxchen17
lint Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#133428 Approved by: https://github.com/aaronenyeshi
Summary:
Add a special field in Graph and Node level metadata called "custom" which should be mapped to a json-serializable object, and we guarantee this field should be always preversed across the following transformations:
Test Plan: :test_export -- -r custom_tag
Reviewed By: angelayi
Differential Revision: D60291839