aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Symes <dominic.symes@arm.com>2023-09-21 10:49:28 +0100
committerDominic Symes <dominic.symes@arm.com>2023-09-21 10:49:35 +0100
commitdef882e8363e887ce53e4b5c34bdc3ba3dfbc55c (patch)
tree5afaf4545c963e476d72a8ad15ea4feba95fb027
parent629baef9f753e4d0f570e3eac2eb33d4b711135e (diff)
downloadspecification-def882e8363e887ce53e4b5c34bdc3ba3dfbc55c.tar.gz
TRANSPOSE_CONV2D: Remove redundant out_shape argument
The output shape can be calculated from the input shape and attributes so the out_shape argument is redundant. Change-Id: I7e6b0b7f03dc75ccdf967261fad4185c513ed187 Signed-off-by: Dominic Symes <dominic.symes@arm.com>
-rw-r--r--chapters/tensor_ops.adoc2
-rw-r--r--tosa.xml4
2 files changed, 1 insertions, 5 deletions
diff --git a/chapters/tensor_ops.adoc b/chapters/tensor_ops.adoc
index b9d54c1..b3de433 100644
--- a/chapters/tensor_ops.adoc
+++ b/chapters/tensor_ops.adoc
@@ -402,7 +402,7 @@ ERROR_IF(OH != (IH - 1) * stride_y + out_pad_top + out_pad_bottom + KH);
ERROR_IF(OW != (IW - 1) * stride_x + out_pad_left + out_pad_right + KW);
ERROR_IF(BC != OC && BC != 1);
-for_each(index in out_shape) {
+for_each(index in [N, OH, OW, OC]) {
tensor_write<out_t>(output, [N,OH,OW,OC], index, bias[(BC == 1) ? 0 : index[3]])
}
for_each(0 <= n < N, 0 <= iy < IH, 0 <= ix < IW, 0 <= oc < OC,
diff --git a/tosa.xml b/tosa.xml
index e7c8d2b..28b40e2 100644
--- a/tosa.xml
+++ b/tosa.xml
@@ -620,10 +620,6 @@
<levellimit value="stride_x" limit="MAX_STRIDE"/>
<rank min="1" max="1"/>
</argument>
- <argument category="attribute" name="out_shape" type="tensor_t" shape="[4]" tensor-element-type="i32_t">
- <description>[N,OH,OW,OC]</description>
- <rank min="1" max="1"/>
- </argument>
<argument category="attribute" name="input_zp" type="tensor_t" shape="-" tensor-element-type="in_t">
<description>Input tensor zero point. Must be zero for non-int8 types.</description>
<rank min="0" max="0"/>