pytorch
58650835 - [fx][subgraph_rewriter] Change match_filter to be a List in replace_pattern_with_filters (#87257)

Commit
2 years ago
[fx][subgraph_rewriter] Change match_filter to be a List in replace_pattern_with_filters (#87257) Summary: att, this is experimental api so not marking it as bc-breaking. The match will be accepted only if all the filters in the list passes. Changing the filter arg to be list also allows us to pass in empty list that means no filter, which makes user code cleaner. Test Plan: python test/test_fx.py -k test_replace_pattern_with_filters Reviewers: Subscribers: Tasks: Tags: Pull Request resolved: https://github.com/pytorch/pytorch/pull/87257 Approved by: https://github.com/SherlockNoMad
Author
Committer
Parents
Loading