diff options
author | Eric Kunze <eric.kunze@arm.com> | 2021-03-11 15:38:22 -0800 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2021-03-11 15:39:53 -0800 |
commit | 839830a72ebb27c4a818e15d3334e79085906dc8 (patch) | |
tree | 9999a6fc050d75122eb0a46a215558c0665d6e91 /chapters/data_layout.adoc | |
parent | 8e4a9d33f0527107fda724fc0f7b6b7c1f42bf79 (diff) | |
download | specification-839830a72ebb27c4a818e15d3334e79085906dc8.tar.gz |
Make pseudocode block tags consistent
They are all now [source,c++] and use ---- as the
delimiter.
Also made the pseudocode indentation consistent (4 spaces)
in the introduction sections.
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I1287a60cfeae8b7e3c63b9fc8885b1ebf3d3386d
Diffstat (limited to 'chapters/data_layout.adoc')
-rw-r--r-- | chapters/data_layout.adoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc index b5b5112..4b01d55 100644 --- a/chapters/data_layout.adoc +++ b/chapters/data_layout.adoc @@ -79,7 +79,7 @@ Zero-pads a tensor along borders of each dimension. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = index; @@ -119,7 +119,7 @@ Returns a tensor with the same type/values as the input, with a new shape specif *Operation Function:* -[source,c] +[source,c++] ---- assert(tensor_size(shape1) == tensor_size(shape)); for(i = 0; i < tensor_size(shape); i++) { @@ -155,7 +155,7 @@ Returns a tensor with the same type/values as the input, with the data reversed *Operation Function:* -[source,c] +[source,c++] ---- assert(0 <= axis && axis < rank(shape)); for_each(index in shape) { @@ -195,7 +195,7 @@ No data conversion happens during a slice operation. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { tmp_index = index; @@ -235,7 +235,7 @@ Replicates input1 multiplies times along each dimension. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { tmp_index = index; @@ -276,7 +276,7 @@ Permutes the dimensions based on perm. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { tmp_index = index; |