diff options
author | wilisa01 <william.isaksson@arm.com> | 2023-02-14 12:03:59 +0000 |
---|---|---|
committer | Fredrik Svedberg <fredrik.svedberg@arm.com> | 2023-02-15 13:59:18 +0000 |
commit | 16b5e5e2d79564c7bb82ce6750cb2aec205d6621 (patch) | |
tree | 1436e190fe2fc48611b3024115093f8a12978673 /ethosu/vela | |
parent | 9070f0f1d9ee0fbf2cc3ee62a60f9b600bd62055 (diff) | |
download | ethos-u-vela-16b5e5e2d79564c7bb82ce6750cb2aec205d6621.tar.gz |
MLBEDSW-7342: Regression: Output diff for mlperf_deeplabv3_mnv2_ade20k_int8
Swapped order of ifms to add in tflite graph optimiser.
The output diff was caused by the second input tensor being placed on sram, despite there being no dma request to move it there.
Change-Id: I2e83b669ba226c7e96a0bb0d46ba811434cf7bb6
Signed-off-by: wilisa01 <william.isaksson@arm.com>
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/tflite_graph_optimiser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/tflite_graph_optimiser.py b/ethosu/vela/tflite_graph_optimiser.py index af8695b7..2026892e 100644 --- a/ethosu/vela/tflite_graph_optimiser.py +++ b/ethosu/vela/tflite_graph_optimiser.py @@ -296,7 +296,8 @@ def convert_resize_1x1_to_add(op): quantization = QuantizationParameters(0.0, 255.0) quantization.scale_f32 = 1.0 quantization.zero_point = 0 - op.set_input_tensor(create_const_tensor(name, shape, dtype, values, quantization=quantization), 1) + op.inputs[1] = op.inputs[0] + op.set_input_tensor(create_const_tensor(name, shape, dtype, values, quantization=quantization), 0) op.set_ifm_ofm_shapes() DebugDatabase.add_optimised(op, op) |