From 173fc16f46b2938ff49a39fb2dad31c54161a874 Mon Sep 17 00:00:00 2001
From: Eric Kunze <eric.kunze@arm.com>
Date: Tue, 17 Aug 2021 14:57:46 -0700
Subject: Clarify range limitations for tensors

Catch zero and negative sized tensors.
Clarify configuration of bool_t in the reference model.
int4_t limitations on -8 to stay symmetric around 0.
Pad values must be >= 0.
Stride,dilation values must be >= 1.

Change-Id: Idb6ef740f855912a8340475ba319816f90c9b051
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
---
 chapters/pseudocode.adoc | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'chapters/pseudocode.adoc')

diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc
index d9d8836..e6b7604 100644
--- a/chapters/pseudocode.adoc
+++ b/chapters/pseudocode.adoc
@@ -120,7 +120,7 @@ float_t round_to_nearest_float(in_t f)
   The behavior for ties is implementation dependent.
 
 out_t sign_extend(in_t input)
-  Only valid for twos complement integer values where out_t has more bits than in_t.
+  Only valid for two's complement integer values where out_t has more bits than in_t.
   Output = input
   Replicate the top bit of input for all bits between the top bit of input and the top bit of output.
 
@@ -141,3 +141,11 @@ in_t* flatten(in_t lists[]) {
     }
 }
 ----
+
+The following helper function returns the length of a list
+
+[source,c++]
+----
+int length(in_t input)
+    return number of elements in input
+----
-- 
cgit v1.2.1

