Skip to content

Replace debug handle with from_node to trace operator transformation #2339

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

Gasoonjia
Copy link
Contributor

Summary:
This diff replace the debug handle with from_node infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation. For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle from from_node info via hasing.

After this change user no longer need to invoke generate_numeric_debug_handle for debugging. Also the original pipeline will still work under current scenario.

Differential Revision: D76168997

Copy link

pytorch-bot bot commented Jun 9, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2339

Note: Links to docs will display an error until the docs builds have been completed.

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 Jun 9, 2025
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 9, 2025
pytorch#2339)

Summary:

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation. For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle from from_node info via hasing.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Differential Revision: D76168997
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 9, 2025
pytorch#2339)

Summary:
Pull Request resolved: pytorch#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation. For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle from from_node info via hasing.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Differential Revision: D76168997
@Gasoonjia Gasoonjia force-pushed the export-D76168997 branch 2 times, most recently from 0379546 to 06affa9 Compare June 10, 2025 18:24
Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 10, 2025
pytorch#2339)

Summary:

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation. For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle from from_node info via hasing.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jun 10, 2025
Summary:
X-link: pytorch/ao#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation. For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle from from_node info via hasing.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@Gasoonjia
Copy link
Contributor Author

@pytorchbot label "release notes: for developer"

Copy link

pytorch-bot bot commented Jun 10, 2025

Didn't find following labels among repository labels: release notes: for developer

@Gasoonjia
Copy link
Contributor Author

@pytorchbot label "topic: for developer"

Copy link

pytorch-bot bot commented Jun 10, 2025

Didn't find following labels among repository labels: topic: for developer

@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jun 12, 2025
pytorch#11532)

Summary:
Pull Request resolved: pytorch#11532

X-link: pytorch/ao#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 12, 2025
pytorch#2339)

Summary:
X-link: pytorch/executorch#11532

Pull Request resolved: pytorch#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 12, 2025
pytorch#2339)

Summary:
X-link: pytorch/executorch#11532

Pull Request resolved: pytorch#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/ao that referenced this pull request Jun 12, 2025
pytorch#2339)

Summary:
X-link: pytorch/executorch#11532

Pull Request resolved: pytorch#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jun 12, 2025
pytorch#11532)

Summary:
Pull Request resolved: pytorch#11532

X-link: pytorch/ao#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jun 12, 2025
pytorch#11532)

Summary:
Pull Request resolved: pytorch#11532

X-link: pytorch/ao#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jun 13, 2025
pytorch#11532)

Summary:
Pull Request resolved: pytorch#11532

X-link: pytorch/ao#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@Gasoonjia Gasoonjia added the topic: for developers Use this tag if this PR is mainly developer facing label Jun 18, 2025
@Gasoonjia Gasoonjia enabled auto-merge (squash) June 18, 2025 22:02
pytorch#2339)

Summary:
X-link: pytorch/executorch#11532

Pull Request resolved: pytorch#2339

This diff replace the debug handle  with `from_node` infrastructure, which is a first class citizen in exported program and used to trace the node-level transformation by recording every ancestor of given node. N6213836 is a demonstration of how `from_node` infra records the node transformation after unlifting and re-exporting exported graph.

For simplify the progress, we are trying to reuse the debug handle infrastructure by generating debug handle with hashing their greatest ancestor's node.

After this change user no longer need to invoke `generate_numeric_debug_handle` for debugging. Also the original pipeline will still work under current scenario.

Reviewed By: jerryzh168

Differential Revision: D76168997
@Gasoonjia Gasoonjia merged commit 809af2e into pytorch:main Jun 18, 2025
7 of 17 checks passed
@facebook-github-bot
Copy link
Contributor

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

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: for developers Use this tag if this PR is mainly developer facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants