aboutsummaryrefslogtreecommitdiff
path: root/chapters/activation_funcs.adoc
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-11-12 16:15:47 -0800
committerEric Kunze <eric.kunze@arm.com>2021-11-12 16:16:57 -0800
commita0e9a523fcee7f25d4a81289cf10e9f9082ee878 (patch)
treee48d90ea86c18bd1e36dccbedb6eb8d77263d5cc /chapters/activation_funcs.adoc
parentb79c7d19af28899abb6b821640ea365fd27516a1 (diff)
downloadspecification-a0e9a523fcee7f25d4a81289cf10e9f9082ee878.tar.gz
Use in_out_t when a type is used for input and output
Also change acc_t to out_t when the value is being used as an output. This should make the argument tables easier to follow. Change-Id: I2a57f3c4eaf937f29da785ff5c11576663a39494
Diffstat (limited to 'chapters/activation_funcs.adoc')
-rw-r--r--chapters/activation_funcs.adoc28
1 files changed, 14 insertions, 14 deletions
diff --git a/chapters/activation_funcs.adoc b/chapters/activation_funcs.adoc
index a58a1fc..84a1039 100644
--- a/chapters/activation_funcs.adoc
+++ b/chapters/activation_funcs.adoc
@@ -20,10 +20,10 @@ No zero point subtraction is done to the values, thus to clamp to the zero point
|===
|Argument|Type|Name|Shape|Description
-|Input|in_t*|Input|shape|Input tensor
-|Attribute|in_t|min_val|-|minimum clip value
-|Attribute|in_t|max_val|-|maximum clip value
-|Output|in_t*|Output|shape|Output tensor of same type and shape as input
+|Input|in_out_t*|Input|shape|Input tensor
+|Attribute|in_out_t|min_val|-|minimum clip value
+|Attribute|in_out_t|max_val|-|maximum clip value
+|Output|in_out_t*|Output|shape|Output tensor of same type and shape as input
|===
*Operation Function:*
@@ -31,16 +31,16 @@ No zero point subtraction is done to the values, thus to clamp to the zero point
----
ERROR_IF(max_val < min_val);
for_each(index in shape) {
- in_t value = tensor_read<in_t>(input, shape, index);
- value = apply_clip<in_t>(value, min_val, max_val);
- tensor_write<in_t>(output, shape, index, value);
+ in_out_t value = tensor_read<in_out_t>(input, shape, index);
+ value = apply_clip<in_out_t>(value, min_val, max_val);
+ tensor_write<in_out_t>(output, shape, index, value);
}
----
*Supported Data Types:*
|===
-|Profile|Mode|in_t
+|Profile|Mode|in_out_t
|Any|signed 8|int8_t
|Any|signed 16|int16_t
@@ -72,14 +72,14 @@ generate_lookup_table(&sigmoid_table, &sigmoid_reference);
|===
|Argument|Type|Name|Shape|Description
-|Input|in_t*|Input|shape|Input tensor
-|Output|in_t*|Output|shape|Output tensor of same type and shape as input
+|Input|in_out_t*|Input|shape|Input tensor
+|Output|in_out_t*|Output|shape|Output tensor of same type and shape as input
|===
*Supported Data Types:*
|===
-|Profile|Mode|in_t
+|Profile|Mode|in_out_t
|MI, MT|floating-point|float_t
|===
@@ -110,14 +110,14 @@ generate_lookup_table(&tanh_table, &tanh_reference);
|===
|Argument|Type|Name|Shape|Description
-|Input|in_t*|Input|shape|Input tensor
-|Output|in_t*|Output|shape|Output tensor of same type and shape as input
+|Input|in_out_t*|Input|shape|Input tensor
+|Output|in_out_t*|Output|shape|Output tensor of same type and shape as input
|===
*Supported Data Types:*
|===
-|Profile|Mode|in_t
+|Profile|Mode|in_out_t
|MI, MT|floating-point|float_t
|===