diff options
Diffstat (limited to 'chapters/operators.adoc')
-rw-r--r-- | chapters/operators.adoc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chapters/operators.adoc b/chapters/operators.adoc index 896931a..75084d1 100644 --- a/chapters/operators.adoc +++ b/chapters/operators.adoc @@ -38,9 +38,13 @@ The following function denotes the execution of a TOSA graph, on an input tensor [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)); + REQUIRE(tensor_list_shape(input_list)==tosa_input_shape(graph)); + REQUIRE(tensor_list_shape(output_list)==tosa_output_shape(graph)); <Execute TOSA graph operators as defined in this specification> + if (tosa_graph_result_unpredictable == true) { + // Result of TOSA graph execution is unpredictable due to calling + // the unpredictable() function during execution. + } } ---- |