aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-10-19 14:35:04 -0700
committerEric Kunze <eric.kunze@arm.com>2021-10-20 17:06:55 -0700
commit82019a2621edf481e12b5de09dbfe5dc56283150 (patch)
tree093e022e29d8cc1959ce4544aa215ccafbba9b78
parenta0266b0c2063db2bb61e90f5232bfc986b4145c1 (diff)
downloadspecification-82019a2621edf481e12b5de09dbfe5dc56283150.tar.gz
Remove rank upper limit on TRANSPOSE operator
Change-Id: I8935624362b3b8d1b125ccb801d039b97e88a2ef
-rw-r--r--chapters/data_layout.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc
index 1c87d4b..205ccaf 100644
--- a/chapters/data_layout.adoc
+++ b/chapters/data_layout.adoc
@@ -293,7 +293,7 @@ Permutes the dimensions based on perm.
|===
|Argument|Type|Name|Shape|Description
-|Input|in_t*|input1|shape1|Input tensor with rank from 1 to 4
+|Input|in_t*|input1|shape1|Input tensor with minimum rank of one.
|Attribute|int32_t|perms|[rank(input1)]|List of integers of length equal to the rank of input1. Values must be valid dimensions within shape1, and may not be repeated.
|Output|in_t*|output|shape|Output tensor of same type, rank as the input tensor
|===
@@ -304,7 +304,7 @@ Permutes the dimensions based on perm.
----
for_each(index in perms) {
// Ensure each perms value is a valid value
- ERROR_IF(index > rank(shape1));
+ ERROR_IF(index >= rank(shape1));
ERROR_IF(index < 0);
// Ensure ranks aren't repeated
ERROR_IF(indexes_used[index] == true);