Skip to content

Conversation

@tkonolige
Copy link
Contributor

Autoscheduler cannot handle layout rewritting for grouped convolutions and non-nhwc layouts. Previously layout rewriting was enabled for all convolutions causing errors where autoscheduler generated too large layouts like 64N4n1n1n1H1W68C1n1h1w2c2n. Autoscheduler is now only enabled on non-grouped conv2d_nhwc.

@merrymercy @AndrewZhaoLuo

Autoscheduler cannot handle layout rewritting for grouped convolutions
and non-nhwc layouts. Previously layout rewriting was enabled for all
convolutions causing errors where autoscheduler generated too large
layouts like `64N4n1n1n1H1W68C1n1h1w2c2n`. Autoscheduler is now only
enabled on non-grouped conv2d_nhwc.
Copy link
Contributor

@AndrewZhaoLuo AndrewZhaoLuo left a comment

Choose a reason for hiding this comment

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

Hmm ok, can you explain a little bit more about why this works with full conv2ds but not grouped? Is it seeing the filters are parallelizable and doing something weird?

@tkonolige
Copy link
Contributor Author

@AndrewZhaoLuo I have no clue.

@AndrewZhaoLuo
Copy link
Contributor

AndrewZhaoLuo commented Mar 7, 2022

Can you open up an issue, add it to a TODO in code. Then I shall merge once CI passes B)

@AndrewZhaoLuo AndrewZhaoLuo merged commit 704ac8b into apache:main Mar 8, 2022
ziqiangxu8457 pushed a commit to ziqiangxu8457/tvm that referenced this pull request Mar 9, 2022
…he#10522)

Autoscheduler cannot handle layout rewritting for grouped convolutions
and non-nhwc layouts. Previously layout rewriting was enabled for all
convolutions causing errors where autoscheduler generated too large
layouts like `64N4n1n1n1H1W68C1n1h1w2c2n`. Autoscheduler is now only
enabled on non-grouped conv2d_nhwc.
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
…he#10522)

Autoscheduler cannot handle layout rewritting for grouped convolutions
and non-nhwc layouts. Previously layout rewriting was enabled for all
convolutions causing errors where autoscheduler generated too large
layouts like `64N4n1n1n1H1W68C1n1h1w2c2n`. Autoscheduler is now only
enabled on non-grouped conv2d_nhwc.
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.

2 participants