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] Bug fix of rewrite func attr #7358

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

manupak
Copy link
Contributor

@manupak manupak commented Jan 28, 2021

When using pattern with attr of functions, such attrs mostly does not exist for op node. Therefore, hasattrcheck has to be done for op nodes.

@mbrookhart @masahi @comaniac

When using pattern with attr of functions, such attrs
mostly does not exist for op node. Therefore, hasattr
check has to be done for op nodes.

Change-Id: Ia313ab34be95ccc793c32fd8e5e5ef566b78685b
@manupak manupak force-pushed the pattern_matcher_func_attr_bugfix branch from 4932e24 to 14fc1e2 Compare January 28, 2021 12:13
@mbrookhart
Copy link
Contributor

Thanks for finding this @manupa-arm !

@mbrookhart mbrookhart merged commit 67acad3 into apache:main Jan 28, 2021
@mbrookhart
Copy link
Contributor

Thanks @manupa-arm @masahi

alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 11, 2021
When using pattern with attr of functions, such attrs
mostly does not exist for op node. Therefore, hasattr
check has to be done for op nodes.

Change-Id: Ia313ab34be95ccc793c32fd8e5e5ef566b78685b
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
When using pattern with attr of functions, such attrs
mostly does not exist for op node. Therefore, hasattr
check has to be done for op nodes.

Change-Id: Ia313ab34be95ccc793c32fd8e5e5ef566b78685b
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
When using pattern with attr of functions, such attrs
mostly does not exist for op node. Therefore, hasattr
check has to be done for op nodes.

Change-Id: Ia313ab34be95ccc793c32fd8e5e5ef566b78685b
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
When using pattern with attr of functions, such attrs
mostly does not exist for op node. Therefore, hasattr
check has to be done for op nodes.

Change-Id: Ia313ab34be95ccc793c32fd8e5e5ef566b78685b
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