aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chapters/introduction.adoc3
-rw-r--r--chapters/pseudocode.adoc4
2 files changed, 4 insertions, 3 deletions
diff --git a/chapters/introduction.adoc b/chapters/introduction.adoc
index cae23d4..eecdbc7 100644
--- a/chapters/introduction.adoc
+++ b/chapters/introduction.adoc
@@ -337,8 +337,9 @@ Tensor elements are addressed using dim_t values, where each element of the vect
The tensor overall size in elements is limited by the data type size_t.
In this version of the specification, size_t is defined as an unsigned 32-bit integer representing size from 1 to (1<<32) - 1.
-A tensor dimension co-ordinate is limited by the data type index_t.
+The size of tensors along each of their dimensions is limited by the data type index_t.
In this version of the specification, index_t is defined as a signed 32-bit integer.
+This means that the maximum size of a tensor along each dimension is (1<<31) - 1 and therefore the maximum coordinate value is (1<<31) - 2.
Indices used to access tensors must be non-negative.
==== Data Layouts
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);