aboutsummaryrefslogtreecommitdiff
path: root/chapters/activation_funcs.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'chapters/activation_funcs.adoc')
-rw-r--r--chapters/activation_funcs.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapters/activation_funcs.adoc b/chapters/activation_funcs.adoc
index 65266b3..05a693b 100644
--- a/chapters/activation_funcs.adoc
+++ b/chapters/activation_funcs.adoc
@@ -26,7 +26,7 @@ Clamp to an arbitrary minimum and maximum value. Note that the maximum and minim
*Operation Function:*
....
-assert(dimensions(shape)<=4)
+assert(rank(shape)<=4)
for_each (index in shape) {
value = tensor_read<in_t>(input, shape, index)
acc = apply_clip(value, min_val, max_val)