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

[CMSIS-NN] Pad fusion with QNN Conv2D #12353

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

ashutosh-arm
Copy link
Contributor

@ashutosh-arm ashutosh-arm commented Aug 9, 2022

Pass that fuses nn.pad and qnn.conv2d for CMSIS-NN target.

cc @Mousius @areusch @grant-arm @lhutton1 @manupa-arm

@github-actions github-actions bot requested a review from Mousius August 9, 2022 21:41
python/tvm/relay/op/contrib/cmsisnn.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_conv2d.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_conv2d.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_conv2d.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_conv2d.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_fuse_pads.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_fuse_pads.py Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@lhutton1 lhutton1 left a comment

Choose a reason for hiding this comment

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

Left a few comments / questions.. see what you think

src/relay/backend/contrib/cmsisnn/fuse_pads.cc Outdated Show resolved Hide resolved
tests/python/contrib/test_cmsisnn/test_fuse_pads.py Outdated Show resolved Hide resolved
src/relay/backend/contrib/cmsisnn/fuse_pads.cc Outdated Show resolved Hide resolved
src/relay/backend/contrib/cmsisnn/fuse_pads.cc Outdated Show resolved Hide resolved
src/relay/backend/contrib/cmsisnn/fuse_pads.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@lhutton1 lhutton1 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 improvements @ashutosh-arm, looks great! I just had a couple more small comments

python/tvm/relay/op/contrib/cmsisnn.py Show resolved Hide resolved
src/relay/backend/contrib/cmsisnn/fuse_pads.cc Outdated Show resolved Hide resolved
Change-Id: I2fd834dd93e7afdcc454c38700448e3f4d5eb0f5
Change-Id: I6073ce46aa1687aa68b3dc83c848dc5ec7e6d0e0
Change-Id: If58a54bc61d88d899399e6ce0d74ce4e71e7da4c
Change-Id: I4e09cde765586a576e75b4a6f6fdd9419c1ebdae
Change-Id: I1e032295668e68849a365da0dde28234c66cc056
Copy link
Contributor

@lhutton1 lhutton1 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 updates @ashutosh-arm, LGTM!

@lhutton1 lhutton1 merged commit 52779f1 into apache:main Aug 23, 2022
@lhutton1
Copy link
Contributor

Thanks @ashutosh-arm, @SebastianBoblest!

@ashutosh-arm ashutosh-arm deleted the conv2d_pad_fusion branch August 31, 2022 11:30
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Pass that fuses nn.pad and qnn.conv2d for CMSIS-NN target.
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