You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "ekalda (via GitHub)" <gi...@apache.org> on 2023/07/04 09:43:57 UTC

[GitHub] [tvm] ekalda commented on a diff in pull request #14909: [ETHOSU][MicroNPU][Pass] Add a pass to replicate pads

ekalda commented on code in PR #14909:
URL: https://github.com/apache/tvm/pull/14909#discussion_r1251781264


##########
tests/python/contrib/test_ethosu/test_codegen.py:
##########
@@ -157,6 +157,76 @@ def conv2d_double(x):
     infra.compare_tvm_with_tflite(conv2d_double, [ifm_shape], accel_type)
 
 
+@pytest.mark.parametrize("accel_type", ACCEL_TYPES)
+@pytest.mark.parametrize("ifm_shape", [(1, 55, 32, 3)])
+@pytest.mark.parametrize(
+    "kernel_shape, activation_function",
+    [((3, 3), "RELU"), ((1, 2), "NONE")],
+)
+@pytest.mark.parametrize("strides, dilation", [((3, 2), (1, 1))])
+@pytest.mark.parametrize("op_padding", ["SAME", "VALID"])
+@pytest.mark.parametrize("sep_padding", [(0, 0, 1, 1), (7, 5, 4, 5)])
+@pytest.mark.parametrize(
+    "op_pairs", [("conv2d", "conv2d"), ("depthwise", "depthwise"), ("conv2d", "depthwise")]
+)

Review Comment:
   This is 128 codegen tests, which would noticeably increase CI time. I think the variations on `kernel_shape`, `activation_function`, `op_padding` and `sep_padding` are exercised by other tests as well, so these values could be kept constant. Also, if we are parametrizing over one value, it doesn't need to be expressed with `parametrize` and can be included into the test code. 



-- 
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: commits-unsubscribe@tvm.apache.org

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