aboutsummaryrefslogtreecommitdiff
path: root/chapters/ewise_unary.adoc
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-06-17 18:01:09 -0700
committerEric Kunze <eric.kunze@arm.com>2021-06-24 12:18:14 -0700
commita9101530d8ea7a3cb470b722bc6cf8745ab283ac (patch)
tree2918f0c0e16515295ef6d112c279902fdddd44fb /chapters/ewise_unary.adoc
parentf19e594f71e04c72ecf937419333b57dc7dcb873 (diff)
downloadspecification-a9101530d8ea7a3cb470b722bc6cf8745ab283ac.tar.gz
Replace assert with REQUIRE()
REQUIRE is a direct replacement for the asserts, and uses the unpredictable() function in pseudocode to describe the required conditions for operators Change-Id: I35dc81e083d8e41f16728d992bdb8b06b0271226 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'chapters/ewise_unary.adoc')
-rw-r--r--chapters/ewise_unary.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/ewise_unary.adoc b/chapters/ewise_unary.adoc
index 21b14ef..304ef72 100644
--- a/chapters/ewise_unary.adoc
+++ b/chapters/ewise_unary.adoc
@@ -259,8 +259,8 @@ Elementwise negation operation
[source,c++]
----
-assert(in_t == int8_t || input1_zp == 0) // Zero point only for int8_t
-assert(in_t == int8_t || output_zp == 0) // Zero point only for int8_t
+REQUIRE(in_t == int8_t || input1_zp == 0) // Zero point only for int8_t
+REQUIRE(in_t == int8_t || output_zp == 0) // Zero point only for int8_t
for_each(index in shape) {
acc_t acc = tensor_read<in_t>(input1, shape, index, input1_zp);
acc = apply_sub<acc_t>(0, acc);