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

[FIX][VM] Fix relay vm optimize #6322

Merged
merged 2 commits into from
Aug 25, 2020
Merged

[FIX][VM] Fix relay vm optimize #6322

merged 2 commits into from
Aug 25, 2020

Conversation

zhiics
Copy link
Member

@zhiics zhiics commented Aug 21, 2020

We need to pass host_target to optimize because it is needed by memory_alloc

https://github.com/apache/incubator-tvm/blob/4c728d532b987ae4de464597bbfccc687913ad2d/src/relay/backend/vm/compiler.cc#L991

The previous unit test with static graph didn't find the bug because the host_target is only used when emitting shape funcs
https://github.com/apache/incubator-tvm/blob/4c728d532b987ae4de464597bbfccc687913ad2d/python/tvm/relay/transform/memory_alloc.py#L154

cc @icemelon9 @jroesch

Copy link
Member

@icemelon icemelon left a comment

Choose a reason for hiding this comment

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

LGTM

@icemelon icemelon merged commit 751982e into apache:master Aug 25, 2020
@icemelon
Copy link
Member

Thanks @zhiics

@zhiics zhiics deleted the fix_opt branch August 25, 2020 16:07
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* [FIX][VM] Fix relay vm optimize

* retrigger ci
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* [FIX][VM] Fix relay vm optimize

* retrigger ci
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* [FIX][VM] Fix relay vm optimize

* retrigger ci
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 2, 2020
* [FIX][VM] Fix relay vm optimize

* retrigger ci
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 3, 2020
* [FIX][VM] Fix relay vm optimize

* retrigger ci
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.

2 participants