diff options
author | Dominic Symes <dominic.symes@arm.com> | 2022-10-07 15:03:01 +0100 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-10-19 15:18:09 +0000 |
commit | 0205d99cbff58797bf6602ee5718d50c00d8309b (patch) | |
tree | f0dac55564e41bdb0a38a7c335a41c5dcf8b43ce /chapters/comparison.adoc | |
parent | 2ceeaa24618c3499636182cc9a89265e0d70717f (diff) | |
download | specification-0205d99cbff58797bf6602ee5718d50c00d8309b.tar.gz |
Define the index type for tensor co-ordinates
Tensor co-ordinate indices are signed 32-bit values
in this version of the specification.
Signed-off-by: Dominic Symes <dominic.symes@arm.com>
Change-Id: I6b8dde500ef9c4c4c5688c1a43f8d658863e4a49
Diffstat (limited to 'chapters/comparison.adoc')
-rw-r--r-- | chapters/comparison.adoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chapters/comparison.adoc b/chapters/comparison.adoc index 9bc28ad..00ecdd9 100644 --- a/chapters/comparison.adoc +++ b/chapters/comparison.adoc @@ -20,8 +20,8 @@ include::{generated}/operators/EQUAL.adoc[] [source,c++] ---- for_each(index in shape) { - index1 = apply_broadcast(shape, shape1, index); - index2 = apply_broadcast(shape, shape2, index); + dim_t index1 = apply_broadcast(shape, shape1, index); + dim_t index2 = apply_broadcast(shape, shape2, index); in_t value1 = tensor_read<in_t>(input1, shape1, index1); in_t value2 = tensor_read<in_t>(input2, shape2, index2); out_t result; @@ -44,8 +44,8 @@ include::{generated}/operators/GREATER.adoc[] [source,c++] ---- for_each(index in shape) { - index1 = apply_broadcast(shape, shape1, index); - index2 = apply_broadcast(shape, shape2, index); + dim_t index1 = apply_broadcast(shape, shape1, index); + dim_t index2 = apply_broadcast(shape, shape2, index); in_t value1 = tensor_read<in_t>(input1, shape1, index1); in_t value2 = tensor_read<in_t>(input2, shape2, index2); out_t result; @@ -68,8 +68,8 @@ include::{generated}/operators/GREATER_EQUAL.adoc[] [source,c++] ---- for_each(index in shape) { - index1 = apply_broadcast(shape, shape1, index); - index2 = apply_broadcast(shape, shape2, index); + dim_t index1 = apply_broadcast(shape, shape1, index); + dim_t index2 = apply_broadcast(shape, shape2, index); in_t value1 = tensor_read<in_t>(input1, shape1, index1); in_t value2 = tensor_read<in_t>(input2, shape2, index2); out_t result; |