diff options
author | Eric Kunze <eric.kunze@arm.com> | 2023-05-01 15:52:58 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-05-02 11:05:55 -0700 |
commit | a578390f798204d8db5a3402dbbbf4c7cec2a351 (patch) | |
tree | fe99b314d71a4a06c4629f759cdc671b06d8a16d | |
parent | 53e76592361df8c33a6d9580f0170a335c1a15fd (diff) | |
download | specification-a578390f798204d8db5a3402dbbbf4c7cec2a351.tar.gz |
Fix logic error for RESCALE of uint16
Existing logic was impossible to resolve
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I7f38ea57adb7fff9018a6f0fa8dd82453782d59b
-rw-r--r-- | chapters/type_conversion.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/type_conversion.adoc b/chapters/type_conversion.adoc index d6cd1b2..415c5d9 100644 --- a/chapters/type_conversion.adoc +++ b/chapters/type_conversion.adoc @@ -55,8 +55,8 @@ for_each(index in shape) { ERROR_IF(out_t != int8_t && out_t != uint8_t && out_t != uint16_t && output_zp != 0); - ERROR_IF(in_t == uint16_t && (input_zp != 0 || input_zp != 32768)); - ERROR_IF(out_t == uint16_t && (output_zp != 0 || output_zp != 32768)); + ERROR_IF(in_t == uint16_t && input_zp != 0 && input_zp != 32768); + ERROR_IF(out_t == uint16_t && output_zp != 0 && output_zp != 32768); ERROR_IF(scale32 && in_t == int48_t); ERROR_IF(!scale32 && double_round); int48_t value = tensor_read<in_t>(input, shape, index); |