diff options
author | Dominic Symes <dominic.symes@arm.com> | 2022-04-29 16:15:56 +0100 |
---|---|---|
committer | Dominic Symes <dominic.symes@arm.com> | 2022-05-03 13:36:22 +0000 |
commit | cb6c6b33cc85d6c40d46b1ee78bcbd6a049017d5 (patch) | |
tree | 94988082f976e28f25cc13c0331efd119f83b3f2 /chapters/image.adoc | |
parent | 5de08d1db3c1de4fddf3f4bb7a286db35cb9f9d1 (diff) | |
download | specification-cb6c6b33cc85d6c40d46b1ee78bcbd6a049017d5.tar.gz |
Specify width of integer types
Clarify for types previously definded as int
the width assumed by the specification.
Signed-off-by: Dominic Symes <dominic.symes@arm.com>
Change-Id: Ied62d4803a4323a600d33cff09752a76ca48f18d
Diffstat (limited to 'chapters/image.adoc')
-rw-r--r-- | chapters/image.adoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chapters/image.adoc b/chapters/image.adoc index 039595e..c25e2ec 100644 --- a/chapters/image.adoc +++ b/chapters/image.adoc @@ -53,11 +53,11 @@ input position (IH-1,IW-1). |Argument|Type|Name|Shape|Description |Input|in_t*|input|[N,IH,IW,C]|Input tensor -|Attribute|int*|output_size|[2]|[OH,OW] +|Attribute|int32_t* |output_size|[2]|[OH,OW] |Attribute|resize_t*|stride|[2]|[stride_y, stride_x] |Attribute|resize_t*|offset|[2]|[offset_y, offset_x] -|Attribute|int* |border|[2]|[border_y, border_x] -|Attribute|int |shift|-|Shift value (must be zero if resize_t is float) +|Attribute|int32_t* |border|[2]|[border_y, border_x] +|Attribute|int32_t |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 |=== @@ -94,8 +94,8 @@ for_each(0 <= n < N, 0 <= oy < OH, 0 <= ox < OW; 0 <= c < C) { y = oy * stride_y + offset_y; x = ox * stride_x + offset_x; if (resize_t == float_t) { - iy = (int)apply_floor(y); dy = y - (float_t)iy; - ix = (int)apply_floor(x); dx = x - (float_t)ix; + iy = (int32_t)apply_floor(y); dy = y - (float_t)iy; + ix = (int32_t)apply_floor(x); dx = x - (float_t)ix; } else { iy = y >> shift; dy = y - (iy<<shift); ix = x >> shift; dx = x - (ix<<shift); |