diff options
author | Eric Kunze <eric.kunze@arm.com> | 2022-08-05 15:40:12 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-08-19 14:19:28 -0700 |
commit | 58098a7b1ffcf41da759f862deb753c82fe5b4b0 (patch) | |
tree | 75b61a482e23293b8af85adf6210f2d3e4e5695d /chapters/image.adoc | |
parent | 6361d1664c7b82ecc3afdd0eb87e96afea430f89 (diff) | |
download | specification-58098a7b1ffcf41da759f862deb753c82fe5b4b0.tar.gz |
Machine parsable specification
This converts portions of the asciidoc specification into an xml
document and schema. For the html and pdf outputs, the xml is
converted to asciidoc files that are included into the existing
specification.
The xml allows future automated uses of the tosa specification
while maintaining rough compatibility with the existing document.
No significant functional changes are included in this change.
Change-Id: I7f1f95c527638e270c157d58fcdec6a3510daea5
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'chapters/image.adoc')
-rw-r--r-- | chapters/image.adoc | 37 |
1 files changed, 6 insertions, 31 deletions
diff --git a/chapters/image.adoc b/chapters/image.adoc index d6177e4..2c23e79 100644 --- a/chapters/image.adoc +++ b/chapters/image.adoc @@ -49,17 +49,14 @@ the scale as described in the pseudocode. The [border_y, border_x] values adjust the output size to allow fractional sampling beyond integer input position (IH - 1,IW - 1). -*Arguments:* +include::{generated}/operators/RESIZE.adoc[] +*Resize Modes:* |=== -|Argument|Type|Name|Shape|Description - -|Input|in_t*|input|[N,IH,IW,C]|Input tensor -|Attribute|int16_t *|scale|[4]|[scale_y_n, scale_y_d, scale_x_n, scale_x_d] -|Attribute|int16_t *|offset|[2]|[offset_y, offset_x] -|Attribute|int32_t* |border|[2]|[border_y, border_x] -|Attribute|mode_t|mode|-|BILINEAR or NEAREST -|Output|out_t*|output|[N,OH,OW,C]|Output tensor +|Mode|Description + +|NEAREST|Nearest Neighbor +|BILINEAR|Bilinear interpoloation |=== *Operation Function* @@ -129,25 +126,3 @@ for_each(0 <= n < N, 0 <= oy < OH, 0 <= ox < OW; 0 <= c < C) { } } ---- - -*Supported Data Types:* - -|=== -|Profile|Mode|resize_t|in_t|out_t - -|Any|signed 8, bilinear|int16_t|int8_t|int32_t -|Any|signed 8, nearest |int16_t|int8_t|int8_t -|Any|signed 16, bilinear|int16_t|int16_t|int48_t -|Any|signed 16, nearest |int16_t|int16_t|int16_t -|MI,MT|fp16|fp32_t|fp16_t|fp16_t -|MI,MT|bf16|fp32_t|bf16_t|bf16_t -|MI,MT|fp32|fp32_t|fp32_t|fp32_t -|=== - -*Resize Modes:* -|=== -|Mode|Description - -|NEAREST|Nearest Neighbor -|BILINEAR|Bilinear interpoloation -|=== |