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

[Bugfix] Visit each input param of the function in ExprVisitor visit_function #8521

Merged

Conversation

JoeyChou-SiMa-ai
Copy link
Contributor

In the ExprMutator the visit_function https://github.com/apache/tvm/blob/main/python/tvm/relay/expr_functor.py#L203will visit each input param while in ExprVisitor it doesn't https://github.com/apache/tvm/blob/main/python/tvm/relay/expr_functor.py#L155.

This PR added visitation for each input param in ExprVisitor's visit_function.

cc @comaniac

Copy link
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

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

LGTM with that caveat that the python Visitor can only handle small models due to recursion limits in python. It's great for prototyping, but passes should more generally use C++.

@JoeyChou-SiMa-ai
Copy link
Contributor Author

LGTM with that caveat that the python Visitor can only handle small models due to recursion limits in python. It's great for prototyping, but passes should more generally use C++.

Thanks @mbrookhart for the quick response, will take your advice.

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

@comaniac comaniac merged commit a492db8 into apache:main Jul 27, 2021
@comaniac
Copy link
Contributor

Thanks @JoeyChou-SiMa-ai @mbrookhart

ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants