diff options
author | Dominic Symes <dominic.symes@arm.com> | 2022-04-11 10:55:16 +0100 |
---|---|---|
committer | Dominic Symes <dominic.symes@arm.com> | 2022-04-14 09:49:19 +0100 |
commit | a6ac716b995cbfe31a2549d41c6abb58f4fdce39 (patch) | |
tree | e2bd92dcdc46e18ccc03ec97854aba62f27352ad /chapters/image.adoc | |
parent | a1ba656173cf49979f0139ebf91581a6ddd81c7a (diff) | |
download | specification-a6ac716b995cbfe31a2549d41c6abb58f4fdce39.tar.gz |
Specify output dimension formulae for tensor ops
For each tensor op clarify how the output dimensions
of output height (OH) and output width (OW) relate
to the input height (IH) and input width (IW).
Signed-off-by: Dominic Symes <dominic.symes@arm.com>
Change-Id: Iad36041f54e439c944cacf08afac5567dd2bad3f
Diffstat (limited to 'chapters/image.adoc')
-rw-r--r-- | chapters/image.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/image.adoc b/chapters/image.adoc index 16e83b5..039595e 100644 --- a/chapters/image.adoc +++ b/chapters/image.adoc @@ -67,8 +67,8 @@ input position (IH-1,IW-1). [source,c++] ---- // Derive the output dimensions from the input dimensions -OH = floor(((IH-1)*(1<<shift) - offset_y)/stride_y)) + 1 + border_y -OW = floor(((IW-1)*(1<<shift) - offset_x)/stride_x)) + 1 + border_x +OH = idiv((IH-1)*(1<<shift) - offset_y, stride_y) + 1 + border_y; +OW = idiv((IW-1)*(1<<shift) - offset_x, stride_x) + 1 + border_x; // Ensure the image size is supported by GPU APIs and that for integer // implementations, position * stride does not overflow int32_t. ERROR_IF(max(OH,OW,IH,IW) >= 16384); |