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][REFACTOR] Mix mode context analysis #6403

Merged
merged 7 commits into from Sep 9, 2020

Conversation

zhiics
Copy link
Member

@zhiics zhiics commented Sep 5, 2020

https://discuss.tvm.apache.org/t/vm-an-error-from-context-analysis-pass/7818

This PR uses the MixModeVisitor to leverage its non-recursive visitor and memoization. We bumped the visit limit to allow high order functions to be visited multiple times which enables pytorch lstm tests. More powerful unification needs to be added for these functions.

In addition, the use_gpu decorator is added to many more unit tests.

@zhiics zhiics marked this pull request as ready for review September 8, 2020 15:26
@zhiics
Copy link
Member Author

zhiics commented Sep 8, 2020

cc @mbrookhart @masahi @icemelon9 @jroesch

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

Copy link
Member

@masahi masahi left a comment

Choose a reason for hiding this comment

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

Thanks very much for working on this!

@masahi
Copy link
Member

masahi commented Sep 9, 2020

I need this fix for a new PyTorch frontend test I'm working on, so merging now. Thanks @zhiics @mbrookhart @leandron

@masahi masahi merged commit 50adbfa into apache:master Sep 9, 2020
@zhiics zhiics deleted the mix_mode_context_analysis branch September 16, 2020 21:55
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
* mix mode context analysis

* add uses_gpu decorator for more tests

* revert visit counter

* relax visit limit

* lint

* bump visit limit to 19

* typo
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
* mix mode context analysis

* add uses_gpu decorator for more tests

* revert visit counter

* relax visit limit

* lint

* bump visit limit to 19

* typo
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 2020
* mix mode context analysis

* add uses_gpu decorator for more tests

* revert visit counter

* relax visit limit

* lint

* bump visit limit to 19

* typo
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.

None yet

4 participants