aboutsummaryrefslogtreecommitdiff
path: root/chapters/operators.adoc
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-03-11 15:38:22 -0800
committerEric Kunze <eric.kunze@arm.com>2021-03-11 15:39:53 -0800
commit839830a72ebb27c4a818e15d3334e79085906dc8 (patch)
tree9999a6fc050d75122eb0a46a215558c0665d6e91 /chapters/operators.adoc
parent8e4a9d33f0527107fda724fc0f7b6b7c1f42bf79 (diff)
downloadspecification-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/operators.adoc')
-rw-r--r--chapters/operators.adoc15
1 files changed, 9 insertions, 6 deletions
diff --git a/chapters/operators.adoc b/chapters/operators.adoc
index fa8cd47..896931a 100644
--- a/chapters/operators.adoc
+++ b/chapters/operators.adoc
@@ -21,25 +21,28 @@ An operator processes input operands to produce output operands. An operator can
Some operators, such as control flow operators, take a graph of other operators as an attribute. The type tosa_graph_t will denote a graph of operators and the following functions define the tensor shape list for the graph input and outputs:
-....
+[source,c++]
+----
shape_list_t tosa_input_shape(tosa_graph_t graph);
shape_list_t tosa_output_shape(tosa_graph_t graph);
-....
+----
Similarly the type tensor_list_t will be used for a list of tensors and the following function returns the shape of a tensor list:
-....
+[source,c++]
+----
shape_list_t tensor_list_shape(tosa_list_t tensor_list);
-....
+----
The following function denotes the execution of a TOSA graph, on an input tensor list to produce an output tensor list.
-....
+[source,c++]
+----
tosa_execute_graph(tosa_graph_t graph, tosa_list_t input_list, tosa_list_t output_list) {
assert(tensor_list_shape(input_list)==tosa_input_shape(graph));
assert(tensor_list_shape(output_list)==tosa_output_shape(graph));
<Execute TOSA graph operators as defined in this specification>
}
-....
+----
Note that within the graph, each input operand is instantiated as a PLACEHOLDER operator.