d-smirnov commented on a change in pull request #6724:
URL: https://github.com/apache/incubator-tvm/pull/6724#discussion_r518182386
##########
File path: tests/python/contrib/test_arm_compute_lib/test_dense.py
##########
@@ -323,7 +357,7 @@ def test_codegen_qnn_dense():
has_bias=composite,
)
exp_codegen = _get_expected_codegen(*args, has_bias=composite)
- verify_codegen(func, exp_codegen, 1)
+ verify_codegen(func, exp_codegen, acl_partitions, 2 - 2 *
acl_partitions)
Review comment:
test was extended to incorporate situations where no acl partition be
generated
##########
File path: tests/python/contrib/test_arm_compute_lib/test_dense.py
##########
@@ -215,18 +231,18 @@ def test_codegen_dense():
np.random.seed(0)
dtype = ["float32"]
- shape = [((1, 128), (16, 128), 16), ((32, 32), (32, 32), 32), ((1, 64),
(1, 64), 1)]
+ shape = [(1, (1, 128), (16, 128), 16), (1, (32, 32), (32, 32), 32), (0,
(1, 64), (1, 64), 1)]
composite = [False, True]
trials = generate_trials([dtype, shape, composite], 3)
- for dtype, (shape, weight_shape, units), composite in trials:
+ for dtype, (acl_partitions, shape, weight_shape, units), composite in
trials:
inputs = {"a"}
args = (shape, weight_shape, units, dtype)
func, params = _get_model(*args, var_names=iter(inputs),
has_bias=composite)
exp_codegen = _get_expected_codegen(*args, has_bias=composite)
- verify_codegen(func, exp_codegen, 1)
+ verify_codegen(func, exp_codegen, acl_partitions, 1 - acl_partitions)
Review comment:
test was extended to incorporate situations where no acl partition be
generated
----------------------------------------------------------------
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]