diff options
Diffstat (limited to 'chapters/ewise_unary.adoc')
-rw-r--r-- | chapters/ewise_unary.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/ewise_unary.adoc b/chapters/ewise_unary.adoc index 304ef72..036c6e3 100644 --- a/chapters/ewise_unary.adoc +++ b/chapters/ewise_unary.adoc @@ -259,8 +259,8 @@ Elementwise negation operation [source,c++] ---- -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 +ERROR_IF(in_t != int8_t && input1_zp != 0) // Zero point only for int8_t +ERROR_IF(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); |