-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Escape curly brackets in FxGraphDrawer _typename #83604
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
❌ 2 New Failures, 1 PendingAs of commit 3db7cff (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
This pull request was exported from Phabricator. Differential Revision: D38758827 |
torch/fx/passes/graph_drawer.py
Outdated
|
||
return _get_qualified_name(target) | ||
# Escape "{" and "}" to prevent dot files like P522499127 |
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.
This paste is not accessible to OSS users. Please move it to e.g. a github gist
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.
Updated it to github gist!
This pull request was exported from Phabricator. Differential Revision: D38758827 |
c494bfa
to
c06781a
Compare
c06781a
to
677b5f5
Compare
This pull request was exported from Phabricator. Differential Revision: D38758827 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D38758827 |
677b5f5
to
0a1abff
Compare
Summary: Pull Request resolved: pytorch#83604 Encountered `Error: bad label format` from dot (i.e. graphviz) when benchmarking models that have dict-like structure. The root cause was that curly brackets were not properly escaped, like this example P522499127 (unescaped curly brackets in target= string) This diff insert the fix in FxGraphDrawer, since many of these graph generation codes rely on that class. (Modified summary before exporting to GitHub PR) Test Plan: ``` CUDA_VISIBLE_DEVICES=7 buck run mode/opt -c python.package_style=inplace //hpc/new/models/feed/benchmark:feed_lower_benchmark -- --model-name={INSERT IFR QE MODEL NAME HERE} --batch-iter 100 --batch-size 768 --num-gpu 1 --lower-presets {INSERT ITS PRESET} ``` Will not encounter dot errors after this diff. (Modified test plan before exporting to GitHub PR) Reviewed By: yinghai, jianyuh Differential Revision: D38758827 fbshipit-source-id: d5d1563181dce2fec446b545cf41cf4ef40a03b8
0a1abff
to
3db7cff
Compare
This pull request was exported from Phabricator. Differential Revision: D38758827 |
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failedReason: View failures on hud. Refusing to merge as mandatory check(s) pull failed for rule superuser. Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge --force |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge --force "force merging, permitted by Sergii" |
@pytorchbot successfully started a merge job. Check the current status here. |
Hey @SungMinCho. |
Summary: Encountered `Error: bad label format` from dot (i.e. graphviz) when benchmarking models that have dict-like structure. The root cause was that curly brackets were not properly escaped, like this example P522499127 (unescaped curly brackets in target= string) This diff insert the fix in FxGraphDrawer, since many of these graph generation codes rely on that class. (Modified summary before exporting to GitHub PR) Pull Request resolved: #83604 Approved by: https://github.com/yinghai, https://github.com/jianyuh Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/bf67589915de07a6b8756a685de9abbd90ec2dfa Test plan from GitHub: ``` CUDA_VISIBLE_DEVICES=7 buck run mode/opt -c python.package_style=inplace //hpc/new/models/feed/benchmark:feed_lower_benchmark -- --model-name={INSERT IFR QE MODEL NAME HERE} --batch-iter 100 --batch-size 768 --num-gpu 1 --lower-presets {INSERT ITS PRESET} ``` Will not encounter dot errors after this diff. (Modified test plan before exporting to GitHub PR) Reviewed By: yinghai, mehtanirav, jianyuh Differential Revision: D38758827 Pulled By: SungMinCho fbshipit-source-id: f33f372b454563ad9656dd7850ef591e58d5f46c
Summary:
Encountered
Error: bad label format
from dot (i.e. graphviz) when benchmarking models that have dict-like structure.The root cause was that curly brackets were not properly escaped, like this example P522499127 (unescaped curly brackets in target= string)
This diff insert the fix in FxGraphDrawer, since many of these graph generation codes rely on that class.
(Modified summary before exporting to GitHub PR)
Test Plan:
Will not encounter dot errors after this diff.
(Modified test plan before exporting to GitHub PR)
Reviewed By: yinghai
Differential Revision: D38758827