From a0e9a523fcee7f25d4a81289cf10e9f9082ee878 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Fri, 12 Nov 2021 16:15:47 -0800 Subject: 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 --- chapters/activation_funcs.adoc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'chapters/activation_funcs.adoc') 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(input, shape, index); - value = apply_clip(value, min_val, max_val); - tensor_write(output, shape, index, value); + in_out_t value = tensor_read(input, shape, index); + value = apply_clip(value, min_val, max_val); + tensor_write(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 |=== -- cgit v1.2.1