Skip to content

Move SimplifyConvPad to a new pass and don't enable it by default#7603

Merged
masahi merged 5 commits intoapache:mainfrom
mbrookhart:separate_implicit_padding_pass
Mar 6, 2021
Merged

Move SimplifyConvPad to a new pass and don't enable it by default#7603
masahi merged 5 commits intoapache:mainfrom
mbrookhart:separate_implicit_padding_pass

Conversation

@mbrookhart
Copy link
Copy Markdown
Contributor

#7515 Caused a regression on the vulkan backend. This PR separates that optimization into a separate pass an disables it by default while we hunt for the issue in spirv.

cc @tmoreau89

Copy link
Copy Markdown
Contributor

@csullivan csullivan 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 breaking this one out @mbrookhart

Comment thread python/tvm/relay/transform/transform.py Outdated
return _ffi_api.SimplifyExpr()


def ImplicitPadding():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we build up multiple patterns that can fuse implicit padding it may be useful to key on/off certain patterns based on operator type via a white or blacklist.

Comment thread src/relay/transforms/implicit_padding.cc Outdated
Comment thread src/relay/transforms/implicit_padding.cc
@masahi masahi self-assigned this Mar 5, 2021
@masahi masahi merged commit 69c1c6d into apache:main Mar 6, 2021
@masahi
Copy link
Copy Markdown
Member

masahi commented Mar 6, 2021

Thanks @mbrookhart @csullivan

@mbrookhart mbrookhart deleted the separate_implicit_padding_pass branch March 8, 2021 21:06
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…ache#7603)

* Move SimplifyConvPad to a new pass and don't enable it by default

* rename pass

* move files

* fix lint

* adjust test tolerance
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
…ache#7603)

* Move SimplifyConvPad to a new pass and don't enable it by default

* rename pass

* move files

* fix lint

* adjust test tolerance
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