-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend subgraph_rewriter logic (#51532)
Summary: Pull Request resolved: #51532 - Change output of `replace_pattern` to `List[Match]` reflecting the pattern(s) matched in the original graph - Ensure that all Callables (not just FunctionType objects) work with the rewriter - Fix incorrect matching in degenerate case (`test_subgraph_rewriter_correct_output_replacement`) - Verify that pattern matching works when pattern and original graph are the same Test Plan: Imported from OSS Reviewed By: jamesr66a Differential Revision: D26193082 Pulled By: ansley fbshipit-source-id: 7f40c3862012a44adb88f403ade7afc37e50417f
- Loading branch information
1 parent
627ec8b
commit f2c4dea
Showing
2 changed files
with
171 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters