From ae2d553c4f3dd71a1df6c0e8c9cb920ae584b59e Mon Sep 17 00:00:00 2001 From: Louis Verhaard Date: Fri, 11 Dec 2020 17:19:54 +0100 Subject: MLBEDSW-3499: Support for PAD operator Replaces the PAD operator by hardware padding when possible. Change-Id: I9dce0885e51a4a73715824d7368637222e39b2b3 Signed-off-by: Louis Verhaard --- ethosu/vela/test/testutil.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ethosu/vela/test/testutil.py') diff --git a/ethosu/vela/test/testutil.py b/ethosu/vela/test/testutil.py index c3459501..96aeb7eb 100644 --- a/ethosu/vela/test/testutil.py +++ b/ethosu/vela/test/testutil.py @@ -115,8 +115,9 @@ def create_op_with_quant_tensors( def create_op(op_type, inputs, output, attrs=None): op = Operation(op_type, output.name + "_op") - op.inputs = inputs - op.outputs = [output] + for input in inputs: + op.add_input_tensor(input) + op.set_output_tensor(output) if attrs is not None: op.attrs = attrs op.set_ifm_ofm_shapes() -- cgit v1.2.1