Skip to content

Conversation

@Gasoonjia
Copy link
Contributor

@Gasoonjia Gasoonjia commented Dec 5, 2024

Stack from ghstack (oldest at bottom):

Differential Revision: D66622890

Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 5, 2024

🔗 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 Failures

As of commit 100c16a with merge base de74961 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 5, 2024
Gasoonjia added a commit that referenced this pull request Dec 5, 2024
Differential Revision: [D66622890](https://our.internmc.facebook.com/intern/diff/D66622890/)

ghstack-source-id: 256664831
Pull Request resolved: #7197
@facebook-github-bot
Copy link
Contributor

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]
Copy link
Contributor

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?

Copy link
Contributor Author

@Gasoonjia Gasoonjia Dec 10, 2024

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.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66622890

Gasoonjia added a commit that referenced this pull request Dec 12, 2024
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/)
@Gasoonjia
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

Gasoonjia added a commit that referenced this pull request Dec 12, 2024
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/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66622890

@facebook-github-bot facebook-github-bot merged commit 435d273 into gh/Gasoonjia/5/base Dec 13, 2024
44 of 46 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/Gasoonjia/5/head branch December 13, 2024 05:25
kirklandsign pushed a commit that referenced this pull request Dec 16, 2024
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 <gasoonjia@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants