diff options
author | Matthew Haddon <matthew.haddon@arm.com> | 2021-10-07 17:43:43 +0100 |
---|---|---|
committer | Matthew Haddon <matthew.haddon@arm.com> | 2021-10-08 21:08:09 +0100 |
commit | 7c2cdbcf6385729784b0ff26e96bd58604b80ab9 (patch) | |
tree | 4f95baf701693ceba47a4a528cf60716c49d0a38 /chapters/pseudocode.adoc | |
parent | b6335b827cc58cd6776fe77907d5dfada6d4d93b (diff) | |
download | specification-7c2cdbcf6385729784b0ff26e96bd58604b80ab9.tar.gz |
Force output shape to be correct for pooling operations
The avg_pool2d and max_pool2d operators trigger an error_if
statement if the output shape provided does not match the output
shape generated by the operation given the input arguments.
* Add pseudocode for floor operation
* Fixed type in RESCALE op
Signed-off-by: Matthew Haddon <matthew.haddon@arm.com>
Change-Id: I087faa331c30becc05719cd1261f436019dcdeb5
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r-- | chapters/pseudocode.adoc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc index e6b7604..5e6af5b 100644 --- a/chapters/pseudocode.adoc +++ b/chapters/pseudocode.adoc @@ -128,7 +128,7 @@ out_t truncate(in_t input) output is the sizeof(out_t) least significant bits in input. ---- -The following definition is used to flatten a list of lists into a single list +The following definition is used to flatten a list of lists into a single list. [source,c++] ---- @@ -142,10 +142,13 @@ in_t* flatten(in_t lists[]) { } ---- -The following helper function returns the length of a list +Generic helper functions used to keep the pseudocode concise. [source,c++] ---- int length(in_t input) - return number of elements in input ----- + return number of elements in input list + +int floor(in_t input) + return input value rounded down to nearest integer +----
\ No newline at end of file |