diff options
author | Dwight Lidman <dwight.lidman@arm.com> | 2020-06-04 15:31:56 +0200 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | 86d49935c3736c7aaa419abda07fa20c37c991a8 (patch) | |
tree | 302d94cf7aceb2a25947d5939b5bb18fb5da0d87 | |
parent | 42fed9484c9aa2a43bdd1b07f9b66bdecabd821d (diff) | |
download | ethos-u-vela-86d49935c3736c7aaa419abda07fa20c37c991a8.tar.gz |
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 <dwight.lidman@arm.com>
Change-Id: I2835d5dcf360f65e19265c339e5ffd02de16c823
-rw-r--r-- | ethosu/vela/register_command_stream_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |