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

[Relay][PatternLang] Fuzzy Function Matching #7355

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

mbrookhart
Copy link
Contributor

@comaniac @masahi

I recently ran into a situation where I needed to match based on a function signature, but not necessarily on the function body. To support that, I made some changes to the pattern matcher to allow matching and rewriting functions as long as everything in the match is completely dominated by the pattern.

This works for rewriting, but I haven't been able to get the partitioner to work properly on these tests, so I added a unit test but skipped it with a TODO.

What do you guys think?

… wildcard, allow grouping via dominator analysis
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@masahi masahi merged commit 02fefbc into apache:main Jan 28, 2021
@masahi
Copy link
Member

masahi commented Jan 28, 2021

thanks @mbrookhart @comaniac

alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 11, 2021
… wildcard, allow grouping via dominator analysis (apache#7355)
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
… wildcard, allow grouping via dominator analysis (apache#7355)
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
… wildcard, allow grouping via dominator analysis (apache#7355)
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
… wildcard, allow grouping via dominator analysis (apache#7355)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants