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

Fail early before running invalid dynamic graphs #5856

Merged

Conversation

mbrookhart
Copy link
Contributor

@zhiics

In testing dynamic graphs, I've run into some pretty gnarly error messages deep in the memory planner for graph runtime or deep in nested packed function calls in the VM. In a "fail early" philosphy, This PR adds an earlier check for dynamic shapes and throws with a hopefully more useful error message. Once we have heterogenous execution working on the VM, we can relax the check on the VM side.

Thanks!

Copy link
Member

@zhiics zhiics left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement.

Copy link
Contributor

@kevinthesun kevinthesun left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinthesun kevinthesun merged commit 8942b78 into apache:master Jun 22, 2020
@kevinthesun
Copy link
Contributor

Thanks @mbrookhart @zhiics

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 30, 2020
* fail early before running invalid dynamic graphs

* fix an issue with the VM comment
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Jul 2, 2020
* fail early before running invalid dynamic graphs

* fix an issue with the VM comment
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