leandron commented on code in PR #13498:
URL: https://github.com/apache/tvm/pull/13498#discussion_r1033376520
##########
python/tvm/relay/op/contrib/cmsisnn.py:
##########
@@ -287,8 +287,8 @@ def check_qnn_avg_pool2d(pattern):
return (
pooling.attrs.layout == "NHWC"
and int(input_op.checked_type.shape[0]) == 1
- and input_op.checked_type.dtype == "int8"
- and output.checked_type.dtype == "int8"
+ and (input_op.checked_type.dtype == "int8" or
input_op.checked_type.dtype == "int16")
+ and (output.checked_type.dtype == "int8" or
output.checked_type.dtype == "int16")
Review Comment:
Just for completeness, there is a similar one in `qnn_max_pool2d_pattern`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]