From 839830a72ebb27c4a818e15d3334e79085906dc8 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Thu, 11 Mar 2021 15:38:22 -0800 Subject: 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 Change-Id: I1287a60cfeae8b7e3c63b9fc8885b1ebf3d3386d --- chapters/ewise_binary.adoc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'chapters/ewise_binary.adoc') diff --git a/chapters/ewise_binary.adoc b/chapters/ewise_binary.adoc index 2b8d321..c005611 100644 --- a/chapters/ewise_binary.adoc +++ b/chapters/ewise_binary.adoc @@ -26,7 +26,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -64,7 +64,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -108,7 +108,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -147,7 +147,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -186,7 +186,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -229,7 +229,7 @@ None *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -266,7 +266,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -306,7 +306,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -346,7 +346,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -383,7 +383,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -420,7 +420,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -458,7 +458,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -497,7 +497,7 @@ Axis of size 1 will be broadcast, as necessary. Rank of input tensors must match *Operation Function:* -[source,c] +[source,c++] ---- assert(in_t == int32_t || shift == 0); for_each(index in shape) { @@ -568,7 +568,7 @@ Axis of size 1 will be broadcast as necessary. Rank of input tensors must match. *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { index1 = apply_broadcast(shape, shape1, index); @@ -621,7 +621,7 @@ None *Operation Function:* -[source,c] +[source,c++] ---- for_each(index in shape) { in_t value = tensor_read(input, shape, index); -- cgit v1.2.1