From 86d49935c3736c7aaa419abda07fa20c37c991a8 Mon Sep 17 00:00:00 2001 From: Dwight Lidman Date: Thu, 4 Jun 2020 15:31:56 +0200 Subject: MLBEDSW-2434: optim: 19_12_32, bilinear + depthwise int8 output diff This commit fixes a bug where there would be an off-by-one error in some cases for ResizeBilinear. It is resolved by treating it the same way as an AvgPool in regards to setting the zero point. Signed-off-by: Dwight Lidman Change-Id: I2835d5dcf360f65e19265c339e5ffd02de16c823 --- ethosu/vela/register_command_stream_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu') diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py index 73418d52..da7458ed 100644 --- a/ethosu/vela/register_command_stream_generator.py +++ b/ethosu/vela/register_command_stream_generator.py @@ -798,7 +798,7 @@ def generate_register_command_stream(nng, sg, arch, verbose=False): need_zero_point = (faf is not None) or (fmf == "ConcatSliceWrite") if ( - primary_op.type in set(("AvgPool", "AvgPoolAct")) and not need_zero_point + primary_op.type in set(("AvgPool", "AvgPoolAct", "ResizeBilinear")) and not need_zero_point ) or tens.quantization is None: # Actual integer operation, just set scale to 1 and zero point to 0 emit.cmd0_with_param(zero_point_op, 0) -- cgit v1.2.1