aboutsummaryrefslogtreecommitdiff
path: root/chapters/pseudocode.adoc
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2023-04-18 10:39:32 +0100
committerKevin Petit <kevin.petit@arm.com>2023-04-18 10:39:32 +0100
commite0fee3d30085a6d07b104447f5b128e81126445e (patch)
treeb9cb51515bf44741dd85ae0a31ae16032bfbb91d /chapters/pseudocode.adoc
parent544227ef40dc226707d2c97b41cf0ee0b6111d39 (diff)
downloadspecification-e0fee3d30085a6d07b104447f5b128e81126445e.tar.gz
Fix description of tensor size limit
Also replace all instances of "co-ordinate" with "coordinate" for consistency. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: Idff73092711d3ff85bf4db33df92924c754cf451
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r--chapters/pseudocode.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc
index 42f123b..422188a 100644
--- a/chapters/pseudocode.adoc
+++ b/chapters/pseudocode.adoc
@@ -62,7 +62,7 @@ void LEVEL_CHECK(condition) {
[source,c++]
----
-// Convert tensor index co-ordinates to an element offset
+// Convert tensor index coordinates to an element offset
size_t tensor_index_to_offset(dim_t shape, dim_t index) {
size_t size = tensor_size(shape); // check tensor shape is valid
size_t offset = 0;
@@ -73,7 +73,7 @@ size_t tensor_index_to_offset(dim_t shape, dim_t index) {
return offset;
}
-// Convert an element offset to tensor index co-ordinates
+// Convert an element offset to tensor index coordinates
dim_t tensor_offset_to_index(dim_t shape, size_t offset) {
size_t size = tensor_size(shape); // check tensor shape is valid
REQUIRE(offset < size);