Skip to content

Conversation

@f2013519
Copy link
Contributor

@f2013519 f2013519 commented Sep 5, 2024

Issue:
Currently the qnn.avg_pool2d operator does not take the layout specified with the Convert Layout pass.

Cause:
The layout of the zero point and scale tensors are specified as "undefined". This causes the Convert Layout pass to bail and maintain the original layout.

Fix:
The fix updates the layouts for the scale and zero point tensors to be "channel" layout, similar to how it is done for qnn.conv2d.

Testing:
Added unit test

@f2013519
Copy link
Contributor Author

f2013519 commented Sep 5, 2024

@masahi @kparzysz-quic @quic-sanirudh

PTAL, thanks

Copy link
Contributor

@cbalint13 cbalint13 left a comment

Choose a reason for hiding this comment

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

LGTM

@cbalint13 cbalint13 self-assigned this Sep 8, 2024
@cbalint13
Copy link
Contributor

Thanks @f2013519 for the fix !

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