- 
                Notifications
    You must be signed in to change notification settings 
- Fork 706
restucture debug handle #7197
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
restucture debug handle #7197
Conversation
Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/) [ghstack-poisoned]
| 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7197
 Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 100c16a with merge base de74961 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. | 
Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/) ghstack-source-id: 256664831 Pull Request resolved: #7197
| This pull request was exported from Phabricator. Differential Revision: D66622890 | 
|  | ||
| # TODO(gasoonjia): remove this and leverage core pytorch bfs_trace_with_node_process after code freeze | ||
| def bfs_trace_with_node_process( | ||
| gm: torch.fx.GraphModule, node_op: Callable[[torch.fx.Node], 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.
this one takes gm? I remember another one takes ep? maybe align?
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.
There're two bfs_trace_with_node_process, one is under ao, the other is under et.
ao's take ep and gm while et's only takes gm.
I'm ok to unify them together, just believe not that necessary, since it is an internal utility function, not an api for users to use.
Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/) [ghstack-poisoned]
| This pull request was exported from Phabricator. Differential Revision: D66622890 | 
Pull Request resolved: #7197 This diff formats the debug handle generation process in et stack by. extracting bfs graph tracing process. ghstack-source-id: 257377901 @exported-using-ghexport Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/)
| @pytorchbot label "topic: not user facing" | 
Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/) [ghstack-poisoned]
Pull Request resolved: #7197 This diff formats the debug handle generation process in et stack by. extracting bfs graph tracing process. ghstack-source-id: 257880795 @exported-using-ghexport Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/)
| This pull request was exported from Phabricator. Differential Revision: D66622890 | 
435d273
      into
      
  
    gh/Gasoonjia/5/base
  
    Pull Request resolved: #7197 This diff formats the debug handle generation process in et stack by. extracting bfs graph tracing process. ghstack-source-id: 257880795 @exported-using-ghexport Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/) Co-authored-by: gasoonjia <[email protected]>
Stack from ghstack (oldest at bottom):
Differential Revision: D66622890