aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/test/test_tflite_supported_operators.py
diff options
context:
space:
mode:
authorJohan Alfvén <johan.alfven@arm.com>2022-10-17 12:29:12 +0200
committerJohan Alfvén <johan.alfven@arm.com>2022-10-18 08:42:36 +0200
commita64616c4d7a33c5b2b4e5fb38c57217dc65bc2ea (patch)
tree6b591bbbe0bb0b1527c0d1119fe9d5adde72b6f9 /ethosu/vela/test/test_tflite_supported_operators.py
parentb81e1bb92be8ea5b29625cf2f361e9160286b16a (diff)
downloadethos-u-vela-a64616c4d7a33c5b2b4e5fb38c57217dc65bc2ea.tar.gz
MLBEDSW-6794: ResizeNearestNeighbor with HPC
- Removed half pixel centers constraint for resize nearest neightbor. - Supported scale 2x, 4x and 8x. - Removed test_constraint_resize_half_pixel_centers - Regenerated SUPPORTED_OPS.md Signed-off-by: Johan Alfven <johan.alfven@arm.com> Change-Id: Ic3e02e9c2b2034d537c9a9841b8fb4ee433c96dc
Diffstat (limited to 'ethosu/vela/test/test_tflite_supported_operators.py')
-rw-r--r--ethosu/vela/test/test_tflite_supported_operators.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/ethosu/vela/test/test_tflite_supported_operators.py b/ethosu/vela/test/test_tflite_supported_operators.py
index 35fc1a6f..790f0018 100644
--- a/ethosu/vela/test/test_tflite_supported_operators.py
+++ b/ethosu/vela/test/test_tflite_supported_operators.py
@@ -381,18 +381,6 @@ def test_constraint_resize_attrs():
assert not support.is_operator_supported(op)
-def test_constraint_resize_half_pixel_centers():
- for resize_op in Op.op_set(Op.is_resize_op):
- # Half-pixel centers is only supported for resize bilinear
- op = testutil.create_op_with_quant_tensors(resize_op, [1, 4, 4, 8], [1, 8, 8, 8])
- op.add_input_tensor(create_const_tensor("size", [2], DataType.int32, [8, 8], np.int32))
- op.attrs["half_pixel_centers"] = True
- if resize_op == Op.ResizeBilinear:
- assert support.is_operator_supported(op)
- else:
- assert not support.is_operator_supported(op)
-
-
def test_constraint_concat_pass():
# A working concat
op = testutil.create_op_with_quant_tensors(Op.Concat, [1, 1, 1, 4], [1, 1, 1, 8])