d-smirnov commented on a change in pull request #6786:
URL: https://github.com/apache/incubator-tvm/pull/6786#discussion_r514164953
##########
File path: tests/python/contrib/test_arm_compute_lib/test_conv2d.py
##########
@@ -21,15 +21,15 @@
import tvm
from tvm import relay
-from .infrastructure import (
+from test_arm_compute_lib.infrastructure import (
Review comment:
to be able run tests as python -m test_arm_compute_lib.test_*
##########
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:
There was a duplication here (L213)
----------------------------------------------------------------
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:
[email protected]