Skip to content
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

[fx] Have replace_pattern return replaced nodes #90244

Closed
wants to merge 1 commit into from

Conversation

angelayi
Copy link
Contributor

@angelayi angelayi commented Dec 6, 2022

Summary: Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (List[Tuple[Match, List[Node]]]). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Differential Revision: D41737056

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 6, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit f73fc37:

The following jobs have failed:

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

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Dec 6, 2022
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

angelayi added a commit to angelayi/pytorch that referenced this pull request Dec 7, 2022
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: 0091c3d9177c64685e597902513fbbdc0b625b0c
angelayi added a commit to angelayi/pytorch that referenced this pull request Dec 7, 2022
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: f58ecd9db2c438be6c5402633ff272024665d750
@facebook-github-bot
Copy link
Contributor

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

Copy link
Contributor

@SherlockNoMad SherlockNoMad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per comment.

angelayi added a commit to angelayi/pytorch that referenced this pull request Dec 7, 2022
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: da78e06c4aec8a3024182bfa486aa553c665d938
@facebook-github-bot
Copy link
Contributor

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

angelayi added a commit to angelayi/pytorch that referenced this pull request Dec 7, 2022
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: bfa5b47cdb59503b6a1531afa8dc5aebf377b448
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

angelayi added a commit to angelayi/pytorch that referenced this pull request Dec 8, 2022
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: 3b73a2b488b7b5074e533f4e42ec0d61c0a8f74a
Summary:
Pull Request resolved: pytorch#90244

Modified replace_pattern in the subgraph rewriter to return a list of pairs of matches along with their corresponding replacement nodes in the modified graph (`List[Tuple[Match, List[Node]]]`). This allows us to easily modify the replaced nodes, including setting the metadata.

Test Plan: CI

Reviewed By: SherlockNoMad

Differential Revision: D41737056

fbshipit-source-id: 5f3a9f9be06d9df4edd11698b379c86a9a290ed5
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 9, 2022
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants