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][ConvertLayout] Make missing desired layout non-fatal #6553

Merged
merged 1 commit into from Sep 25, 2020

Conversation

trevor-m
Copy link
Contributor

When ConvertLayout encounters an operator which is supported by ConvertLayout but a desired_layout is not provided by the user, it will create a fatal error. With this PR, it will instead just give a warning and leave that operator how it was.

Currently, anytime a new operator is added to ConvertLayout, it will break ConvertLayout for anyone using it in their code. For example, a BYOC target may want all Conv2D ops to be converted to NCHW but doesn't care about the layout of other ops. They shouldn't have to specify a desired layout for every single op which is supported by ConvertLayout, only the ones which they care about.

@trevor-m
Copy link
Contributor Author

@anijain2305 Could you please review? Thanks!

@anijain2305 anijain2305 merged commit 1a9dcf1 into apache:master Sep 25, 2020
@anijain2305
Copy link
Contributor

Thanks @trevor-m @comaniac this is merged!

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 25, 2020
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 25, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 28, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Oct 13, 2020
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

3 participants