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][Autoscheduler] Fix autoscheduler matmul without units. #7957

Merged
merged 2 commits into from
May 4, 2021

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Apr 30, 2021

When autoscheduling a dense (or matmul) operator, sometimes the layout will be rewritten to have more than two axes. The shape function in relay only deals with this properly when the units attribute is provided. However, some of our frontends do not specify units when constructing a graph, resulting in compilation errors after autoscheduling. This PR adds special handling for rewritten dense ops to fix the problem.

@jwfromm
Copy link
Contributor Author

jwfromm commented Apr 30, 2021

@mbrookhart @merrymercy can you guys take a look at this fix?

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, looks like it needs a lint fix though.

@jwfromm jwfromm merged commit 3ed83b6 into apache:main May 4, 2021
umangyadav pushed a commit to umangyadav/tvm that referenced this pull request May 5, 2021
…e#7957)

* Fix autoscheduler matmul without units.

* Fix lint.
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…e#7957)

* Fix autoscheduler matmul without units.

* Fix lint.
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…e#7957)

* Fix autoscheduler matmul without units.

* Fix lint.
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…e#7957)

* Fix autoscheduler matmul without units.

* Fix lint.
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
…e#7957)

* Fix autoscheduler matmul without units.

* Fix lint.
@jwfromm jwfromm deleted the autoscheduler_matmul_shape branch April 12, 2023 15:54
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