From d8f725c0d9f99de70913ed6319fbca9d8b72be3a Mon Sep 17 00:00:00 2001
From: Eric Kunze <eric.kunze@arm.com>
Date: Fri, 20 May 2022 16:53:33 -0700
Subject: Fix typo in TILE operator

Replicates multiples times, not multiplies.

Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I78c19013d08295171a20fead17661a8f9ea68ac8
---
 chapters/data_layout.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'chapters/data_layout.adoc')

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);
-- 
cgit v1.2.1

