diff options
author | Eric Kunze <eric.kunze@arm.com> | 2021-01-12 16:19:50 -0800 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2021-01-25 13:33:07 -0800 |
commit | 2dce0d022b5103f93bf4393e5cd9a3009fbf5add (patch) | |
tree | 15f3a318564812d16c01809118c0117131a5c80a /chapters/type_conversion.adoc | |
parent | 488a29344419bd2e4402fc6394d43c123548e1ec (diff) | |
download | specification-2dce0d022b5103f93bf4393e5cd9a3009fbf5add.tar.gz |
Remove aint8 type
The aint8 type represented an asymmetrically quantized range.
With the change to move scaling fully into the RESCALE operator,
the aint8 and int8 types didn't have significant differences in
their use with operators. Unifying to a single data type makes
things simpler.
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I3ee89cbdafdc61293ef1f1bec52398d744e716a1
Diffstat (limited to 'chapters/type_conversion.adoc')
-rw-r--r-- | chapters/type_conversion.adoc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chapters/type_conversion.adoc b/chapters/type_conversion.adoc index 2689818..37630e6 100644 --- a/chapters/type_conversion.adoc +++ b/chapters/type_conversion.adoc @@ -1,7 +1,7 @@ // // This confidential and proprietary software may be used only as // authorised by a licensing agreement from ARM Limited -// (C) COPYRIGHT 2020 ARM Limited +// (C) COPYRIGHT 2020-2021 ARM Limited // ALL RIGHTS RESERVED // The entire notice above must be reproduced on all authorised // copies and copies may only be made to the extent permitted @@ -103,8 +103,8 @@ Rescale quantized values into a new domain. This function scales by factor: mult [source,c] .... for_each (index in shape) { - assert(in_t==aint8 || in_t==uint8 || input_zp==0); - assert(out_t==aint8 || out_t==uint8 || output_zp==0); + assert(in_t == int8 || in_t == uint8 || input_zp == 0); + assert(out_t == int8 || out_t == uint8 || output_zp == 0); assert((scale32 && in_t!=int48_t) || (!scale32 && !double_round)); int48_t value = tensor_read<in_t>(input, shape, index, input_zp); int c = (per_channel) ? index[dims-1] : 0; @@ -121,18 +121,18 @@ for_each (index in shape) { |=== |Profile|Mode|in_t|out_t -|Any|signed 8 to signed 8|aint8|aint8 -|Any|signed 8 to signed 16|aint8|int16 -|Any|signed 8 to signed 32|aint8|int32 -|Any|signed 16 to signed 8|int16|aint8 +|Any|signed 8 to signed 8|int8|int8 +|Any|signed 8 to signed 16|int8|int16 +|Any|signed 8 to signed 32|int8|int32 +|Any|signed 16 to signed 8|int16|int8 |Any|signed 16 to signed 16|int16|int16 |Any|signed 16 to signed 32|int16|int32 -|Any|signed 32 to signed 8|int32|aint8 +|Any|signed 32 to signed 8|int32|int8 |Any|signed 32 to signed 16|int32|int16 |Any|signed 32 to signed 32|int32|int32 -|Any|signed 48 to signed 8|int48|aint8 +|Any|signed 48 to signed 8|int48|int8 |Any|signed 48 to signed 16|int48|int16 |Any|signed 48 to signed 32|int48|int32 -|Any|unsigned 8 to signed 8|uint8|aint8 -|Any|signed 8 to unsigned 8|aint8|uint8 +|Any|unsigned 8 to signed 8|uint8|int8 +|Any|signed 8 to unsigned 8|int8|uint8 |=== |