diff options
author | Eric Kunze <eric.kunze@arm.com> | 2022-05-20 16:53:33 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-05-24 14:23:10 -0700 |
commit | d8f725c0d9f99de70913ed6319fbca9d8b72be3a (patch) | |
tree | d6d656e6f75a4177d4a07254667736de09e6d3e8 | |
parent | eef012e19898ca86a8b9f0e6c1b2f30692bc6860 (diff) | |
download | specification-d8f725c0d9f99de70913ed6319fbca9d8b72be3a.tar.gz |
Fix typo in TILE operator
Replicates multiples times, not multiplies.
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I78c19013d08295171a20fead17661a8f9ea68ac8
-rw-r--r-- | chapters/data_layout.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc index 246a0f6..7f30774 100644 --- a/chapters/data_layout.adoc +++ b/chapters/data_layout.adoc @@ -244,7 +244,7 @@ for_each(index in shape) { ==== TILE -Replicates input1 multiplies times along each dimension. +Replicates input1 multiples times along each dimension. *Arguments:* @@ -252,7 +252,7 @@ Replicates input1 multiplies times along each dimension. |Argument|Type|Name|Shape|Description |Input|in_out_t*|input1|shape1|Input tensor with rank from 1 to 4 -|Attribute|int32_t|multiplies|[rank(shape1)]|Number of times to replicate input1 in each dimension +|Attribute|int32_t|multiples|[rank(shape1)]|Number of times to replicate input1 in each dimension |Output|in_out_t*|output|shape|Output tensor of same type, rank as the input tensor |=== @@ -263,7 +263,7 @@ Replicates input1 multiplies times along each dimension. for_each(index in shape) { tmp_index = index; for(i = 0; i < rank(shape); i++) { - REQUIRE(shape1[i] * multiplies[i] == shape[i]); + ERROR_IF(shape1[i] * multiples[i] != shape[i]); tmp_index[i] = index[i] % shape1[i]; } in_out_t value = tensor_read<in_out_t>(input, shape1, tmp_index); |