aboutsummaryrefslogtreecommitdiff
path: root/chapters/pseudocode.adoc
diff options
context:
space:
mode:
authorMatthew Haddon <matthew.haddon@arm.com>2021-10-12 11:07:53 +0100
committerMatthew Haddon <matthew.haddon@arm.com>2021-10-12 16:24:45 +0100
commit718ef8ef9054b68e2a30738d4a2b13794276b1bc (patch)
tree2bcfd1526d02fbebf05e47f87bfb7b29a7fffd12 /chapters/pseudocode.adoc
parent7c2cdbcf6385729784b0ff26e96bd58604b80ab9 (diff)
downloadspecification-718ef8ef9054b68e2a30738d4a2b13794276b1bc.tar.gz
refactor SLICE error_if checks
* refactored error_if checks to avoid logic overlap * Added check to ensure that size dimensions match output dimension * Defined the rank() function in pseudocode helpers Change-Id: I56bf06252d9149d449c984126e8f2025a07d6034 Signed-off-by: Matthew Haddon <matthew.haddon@arm.com>
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r--chapters/pseudocode.adoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc
index 5e6af5b..79ec190 100644
--- a/chapters/pseudocode.adoc
+++ b/chapters/pseudocode.adoc
@@ -151,4 +151,7 @@ int length(in_t input)
int floor(in_t input)
return input value rounded down to nearest integer
+
+int rank(in_t input)
+ return rank of an input tensor
---- \ No newline at end of file