-
Notifications
You must be signed in to change notification settings - Fork 608
Add debug feature to deserialize TOSA fb on dump_artifact #2560
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
The deserialized, human readable, TOSA fb is appended to the GraphModule print that is output with dump_artifact() on the Partition stage. Also, bump the TOSA serialization lib SHA, to avoid verbose warning messages. Change-Id: Ibb3120993d75293824f2ccb5a1b3981db64a2354 Signed-off-by: Fredrik Knutsson <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2560
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 ac8ea41 with merge base 12b5324 ( 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. |
from pprint import pformat | ||
|
||
to_print = None | ||
for spec in self.graph_module.lowered_module_0.compile_specs: |
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.
Is there an API to or other 'nicer' way to access
graph_module.lowered_module_0.compile_specs
and
graph_module.lowered_module_0.processed_bytes
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.
Not that I am aware of, cc @cccclai
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.
Nice. For ArmTester do you want to move Quantize stage to use ArmQuantizer now that it is ready?
from pprint import pformat | ||
|
||
to_print = None | ||
for spec in self.graph_module.lowered_module_0.compile_specs: |
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.
Not that I am aware of, cc @cccclai
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@digantdesai merged this pull request in 9c7bb45. |
The deserialized, human readable, TOSA fb is appended to the GraphModule print that is output with dump_artifact() on the Partition stage. Also, bump the TOSA serialization lib SHA, to avoid verbose warning messages.