aboutsummaryrefslogtreecommitdiff
path: root/chapters/activation_funcs.adoc
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-08-17 14:57:46 -0700
committerEric Kunze <eric.kunze@arm.com>2021-09-16 10:59:28 -0700
commit173fc16f46b2938ff49a39fb2dad31c54161a874 (patch)
tree0e17d2d391353fab462fa78e854538a9f2e4a629 /chapters/activation_funcs.adoc
parent32de3912884dc2dc1425b61c419bbd30f2adbbbd (diff)
downloadspecification-173fc16f46b2938ff49a39fb2dad31c54161a874.tar.gz
Clarify range limitations for tensors
Catch zero and negative sized tensors. Clarify configuration of bool_t in the reference model. int4_t limitations on -8 to stay symmetric around 0. Pad values must be >= 0. Stride,dilation values must be >= 1. Change-Id: Idb6ef740f855912a8340475ba319816f90c9b051 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'chapters/activation_funcs.adoc')
-rw-r--r--chapters/activation_funcs.adoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chapters/activation_funcs.adoc b/chapters/activation_funcs.adoc
index a27d1bf..59030d8 100644
--- a/chapters/activation_funcs.adoc
+++ b/chapters/activation_funcs.adoc
@@ -27,6 +27,7 @@ Clamp to an arbitrary minimum and maximum value. Note that the maximum and minim
*Operation Function:*
[source,c++]
----
+ERROR_IF(max_val < min_val);
for_each(index in shape) {
acc_t value = tensor_read<in_t>(input, shape, index);
acc = (in_t)apply_clip<acc_t>(value, min_val, max_val);