diff options
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r-- | chapters/pseudocode.adoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc index b931822..f4fd885 100644 --- a/chapters/pseudocode.adoc +++ b/chapters/pseudocode.adoc @@ -48,6 +48,12 @@ void ERROR_IF(condition) { tosa_graph_result = tosa_error; } } + +void LEVEL_CHECK(condition) { + // If a level is specified and the level condition fails then + // the result is unpredictable. + REQUIRE(condition); +} ---- === Tensor Access Helpers |