From e5d22a77300643f0a3013ad40ccd2b5b76788b42 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Tue, 15 Dec 2020 15:41:05 -0800 Subject: Disambiguate scale_t in RESIZE command scale_t is already defined globally for the rescaling. Move pseudocode for count_leading_zeros to introduction, and use it in the implementation of CLZ. Change-Id: I2453bce93b6dd25e870b8a010fc62af4c001cbf9 --- chapters/image.adoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'chapters/image.adoc') diff --git a/chapters/image.adoc b/chapters/image.adoc index e8b2917..a8e0219 100644 --- a/chapters/image.adoc +++ b/chapters/image.adoc @@ -38,9 +38,9 @@ from the strides. |Input|in_t*|input|[N,IH,IW,C]|Input tensor |Attribute|int*|output_size|[2]|[OH,OW] -|Attribute|scale_t*|stride|[2]|[stride_y, stride_x] -|Attribute|scale_t*|offset|[2]|[offset_y, offset_x] -|Attribute|int|shift|Shift value (must be zero if scale_t is float) +|Attribute|resize_t*|stride|[2]|[stride_y, stride_x] +|Attribute|resize_t*|offset|[2]|[offset_y, offset_x] +|Attribute|int|shift|Shift value (must be zero if resize_t is float) |Attribute|mode_t|mode|-|BILINEAR or NEAREST |Output|out_t*|output|[N,OH,OW,C]|Output tensor |=== @@ -54,13 +54,13 @@ None [source,c] ---- // scale assert prevents int32_t accumulator overflow for in_t==int8_t -assert((scale_t==float && shift==0)||(00 && stride_y>0); for_each (0<=n