aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/test/test_tflite_supported_operators.py
diff options
context:
space:
mode:
authorJohan Alfven <johan.alfven@arm.com>2023-10-27 13:08:21 +0200
committerJohan Alfven <johan.alfven@arm.com>2023-10-31 10:18:33 +0100
commitafb56ae11294bdf50e190cfafd76e507d5e2787d (patch)
treebf377821860dbba9f92bad3395d29b2560c840ef /ethosu/vela/test/test_tflite_supported_operators.py
parent909923a2461087f64a40e07be7752e8923f70ae7 (diff)
downloadethos-u-vela-afb56ae11294bdf50e190cfafd76e507d5e2787d.tar.gz
MLBEDSW-8201: [MLCE] Extended stride support for CONV_2D
- Added support for stride_h > 3 when ofm height is 1 - Added support for stride_w > 3 when ofm width is 1 - Updated constraints - Updated tests - Updated SUPPORTED_OPS.md Change-Id: I8f89909b05a0f052df5f03702966cee50da61cfc Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Diffstat (limited to 'ethosu/vela/test/test_tflite_supported_operators.py')
-rw-r--r--ethosu/vela/test/test_tflite_supported_operators.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethosu/vela/test/test_tflite_supported_operators.py b/ethosu/vela/test/test_tflite_supported_operators.py
index d6b94789..a433fb8d 100644
--- a/ethosu/vela/test/test_tflite_supported_operators.py
+++ b/ethosu/vela/test/test_tflite_supported_operators.py
@@ -128,6 +128,11 @@ def test_constraint_stride_range(ifm_shape: List[int], stride_w: int, stride_h:
op = testutil.create_op_with_quant_tensors(Op.Conv2DBias, ifm_shape, [1, 8, 8, 8], [1, 1, 1, 1])
op.attrs = {"stride_w": stride_w, "stride_h": stride_h}
assert support.is_operator_supported(op) == supported
+ if not supported and stride_w > 0 and stride_h > 0:
+ # Test not supported but with ofm width and height = 1 -> supported
+ op = testutil.create_op_with_quant_tensors(Op.Conv2DBias, ifm_shape, [1, 1, 1, 8], [1, 1, 1, 1])
+ op.attrs = {"stride_w": stride_w, "stride_h": stride_h}
+ assert support.is_operator_supported(op)
def test_constraint_dilated_height_range():