From 2dce0d022b5103f93bf4393e5cd9a3009fbf5add Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Tue, 12 Jan 2021 16:19:50 -0800 Subject: 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 Change-Id: I3ee89cbdafdc61293ef1f1bec52398d744e716a1 --- chapters/tensor_ops.adoc | 91 ++++++++++++++++++++++++------------------------ 1 file changed, 46 insertions(+), 45 deletions(-) (limited to 'chapters/tensor_ops.adoc') diff --git a/chapters/tensor_ops.adoc b/chapters/tensor_ops.adoc index 7d84ae6..76f39ca 100644 --- a/chapters/tensor_ops.adoc +++ b/chapters/tensor_ops.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 @@ -53,7 +53,7 @@ for_each ( left_index in left_shape, right_index in right_shape ) |=== |Profile|Mode|in_t|out_t -|Any|signed 8|aint8|int32 +|Any|signed 8|int8|int32 |Any|signed 16|int16|int32 |MI, MT|float|float|int32 |=== @@ -87,15 +87,15 @@ This performs an average pooling over the given input tensor. A sliding window o [source,c] ---- -assert(in_t == aint8_t || input_zp == 0) // Zero point only for asymmetric int8 -assert(out_t == aint8_t || output_zp == 0) // Zero point only for asymmetric int8 +assert(in_t == int8_t || input_zp == 0) // Zero point only for int8 +assert(out_t == int8_t || output_zp == 0) // Zero point only for int8 pad=concat([0,0],pad,[0,0]) -for_each ( 0<=n(input, [N,IH,IW,IC], [n,y,x,c], input_zp, pad) @@ -117,7 +117,7 @@ for_each ( 0<=n(input, [N,IH,IW,IC], [n,y,x,ic], input_zp, pad) @@ -177,8 +177,8 @@ for_each (0<=n(input, [N,H,W,C], [n,y,x,c], input_zp, pad) @@ -302,8 +302,8 @@ for_each (0 <= n(input, [N,IC], [n,ic], input_zp) weight_t weight = tensor_read(weight, [OC,IC], [oc,ic], weight_zp) acc = apply_add(acc, value * weight) @@ -355,8 +355,8 @@ for_each (0<=n(A, [M,K], [m,k], A_zp) in_t value2 = tensor_read(B, [K,N], [k,n], B_zp) acc = apply_add(acc, value1 * value2) @@ -404,7 +404,7 @@ for_each (0<=m; iy = oy * stride_y - pad_top ix = ox * stride_x - pad_left @@ -452,7 +452,7 @@ for_each ( 0<=n(output, [N,OH,OW,OC], index, bias[index[3]]) } -for_each (0<=n=0 && oy=0 && ox