-
Notifications
You must be signed in to change notification settings - Fork 688
Fix issue with debug TOSA dumps being overwritten #5029
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
When a graph is partitioned into multiple partitions the Arm Backend overwrote the debug dump of TOSA intermediate files so that only the files for the last partition were available. To fix this the delegation tag is now appended to the file names. Change-Id: I283710e180b10b4aea79d88098d1f77d3e5c22f2 Signed-off-by: Benjamin Klimczak <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5029
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 11d91e3 with merge base 61ddee5 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label 'partner: arm' |
dbg_tosa_dump( | ||
tosa_graph, | ||
artifact_path, | ||
suffix="{}".format(f"_{tag}" if tag else ""), |
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.
Suffix can be _None
, FYI
|
||
|
||
def _get_first_delegation_tag(graph_module) -> str | None: | ||
"""Get the first delegation tag from the graph_module or return None.""" |
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.
can you say that tag contains partition_id thus is unique
@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 7998b7f. |
When a graph is partitioned into multiple partitions the Arm Backend overwrote the debug dump of TOSA intermediate files so that only the files for the last partition were available. To fix this the delegation tag is now appended to the file names.