From 73320a48dfa711f5938b0e3d8e03b9858558b899 Mon Sep 17 00:00:00 2001 From: Dwight Lidman Date: Thu, 5 Nov 2020 10:34:41 +0100 Subject: MLBEDSW-3377: fixup_stridedslice_output may silently change CPU ops This commit removes the constraint on all tensor shapes matching the OFM shape. The motivation is that this constraint essentially only checks that the fixup function has run. This means that it removes the possibility for the fixup function to run after the supported operator check and this effectively means that any StridedSlice operator that would be placed on the CPU is still modified by the fixup function. Because the fixup function is moved to after the supported operators check, some unreachable cases are removed from the fixup function. Signed-off-by: Dwight Lidman Change-Id: I7a82126b7de73bd67873b4e6daf53a6767e33d16 --- ethosu/vela/test/test_supported_operators.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ethosu/vela/test/test_supported_operators.py') diff --git a/ethosu/vela/test/test_supported_operators.py b/ethosu/vela/test/test_supported_operators.py index 595ea590..245ebcf9 100644 --- a/ethosu/vela/test/test_supported_operators.py +++ b/ethosu/vela/test/test_supported_operators.py @@ -486,12 +486,6 @@ def test_constraint_stridedslice_inputs_const(): assert not support.is_operator_supported(op) -def test_constraint_stridedslice_tens_size_matches(): - op = create_strided_slice() - op.inputs[1].values = [1, 1, 1, 1, 1, 1, 1, 1] - assert not support.is_operator_supported(op) - - def test_constraint_stridedslice_stride_values(): # Unsupported strides op = create_strided_slice() -- cgit v1.2.1