d-smirnov commented on a change in pull request #6786:
URL: https://github.com/apache/incubator-tvm/pull/6786#discussion_r516910037



##########
File path: python/tvm/relay/op/contrib/arm_compute_lib.py
##########
@@ -201,38 +201,32 @@ def check_avg_pool2d(extract):
         pool = extract.args[0]
         if pool.args[0].attrs.dtype != "int32":
             return False
-        return avg_pool2d(pool.attrs, pool.args, from_quantized_composite=True)
+        return avg_pool2d(pool, from_quantized_composite=True)
 
     def check_l2_pool2d(extract):
         """Check l2 pool2d pattern is supported by ACL."""
         pool = extract.args[0]
-        return avg_pool2d(pool.attrs, pool.args)
+        return avg_pool2d(pool)
 
     return [
         ("arm_compute_lib.conv2d", conv_pattern(), check_conv),
         ("arm_compute_lib.qnn_conv2d", qnn_conv_pattern(), check_qnn_conv),
         ("arm_compute_lib.dense", dense_pattern(), check_dense),
         ("arm_compute_lib.qnn_dense", qnn_dense_pattern(), check_qnn_dense),
-        ("arm_compute_lib.qnn_conv2d", qnn_conv_pattern(), check_qnn_conv),

Review comment:
       Done. Duplication reverted.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to