diff options
author | Eric Kunze <eric.kunze@arm.com> | 2022-08-05 15:40:12 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-08-19 14:19:28 -0700 |
commit | 58098a7b1ffcf41da759f862deb753c82fe5b4b0 (patch) | |
tree | 75b61a482e23293b8af85adf6210f2d3e4e5695d /chapters/ewise_unary.adoc | |
parent | 6361d1664c7b82ecc3afdd0eb87e96afea430f89 (diff) | |
download | specification-58098a7b1ffcf41da759f862deb753c82fe5b4b0.tar.gz |
Machine parsable specification
This converts portions of the asciidoc specification into an xml
document and schema. For the html and pdf outputs, the xml is
converted to asciidoc files that are included into the existing
specification.
The xml allows future automated uses of the tosa specification
while maintaining rough compatibility with the existing document.
No significant functional changes are included in this change.
Change-Id: I7f1f95c527638e270c157d58fcdec6a3510daea5
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'chapters/ewise_unary.adoc')
-rw-r--r-- | chapters/ewise_unary.adoc | 206 |
1 files changed, 11 insertions, 195 deletions
diff --git a/chapters/ewise_unary.adoc b/chapters/ewise_unary.adoc index 8c88f47..289b657 100644 --- a/chapters/ewise_unary.adoc +++ b/chapters/ewise_unary.adoc @@ -13,14 +13,7 @@ Elementwise absolute value operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/ABS.adoc[] *Floating-point behavior:* |=== @@ -44,27 +37,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|Any|signed 32|int32_t -|MI, MT|floating-point|float_t -|=== - ==== BITWISE_NOT Elementwise bitwise NOT of input tensor. -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/BITWISE_NOT.adoc[] *Operation Function:* @@ -77,28 +54,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|Any|signed 8|int8_t -|Any|signed 16|int16_t -|Any|signed 32|int32_t -|=== - ==== CEIL Elementwise ceiling operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/CEIL.adoc[] *Floating-point behavior:* |=== @@ -118,26 +78,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|floating-point|float_t -|=== - ==== CLZ Elementwise count leading zeros operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/CLZ.adoc[] *Operation Function:* @@ -150,25 +95,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* -|=== -|Profile|Mode|in_out_t - -|Any|signed 32|int32_t -|=== - ==== EXP Elementwise e to the x operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/EXP.adoc[] *Floating-point behavior:* |=== @@ -188,28 +119,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|fp16|fp16_t -|MI, MT|bf16|bf16_t -|MI, MT|fp32|fp32_t -|=== - ==== FLOOR Elementwise floor operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/FLOOR.adoc[] *Floating-point behavior:* |=== @@ -229,28 +143,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|fp16|fp16_t -|MI, MT|bf16|bf16_t -|MI, MT|fp32|fp32_t -|=== - ==== LOG Elementwise natural logarithm operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/LOG.adoc[] *Floating-point behavior:* |=== @@ -270,28 +167,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|fp16|fp16_t -|MI, MT|bf16|bf16_t -|MI, MT|fp32|fp32_t -|=== - ==== LOGICAL_NOT Elementwise logical NOT of input. -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/LOGICAL_NOT.adoc[] *Operation Function:* @@ -304,28 +184,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|Any|bool|bool_t -|=== - ==== NEGATE Elementwise negation operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Attribute|in_out_t|input1_zp|-|Input 1 zero point. Must be zero for non-int8 types. -|Attribute|in_out_t|output_zp|-|Output zero point. Must be zero for non-int8 types. -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/NEGATE.adoc[] *Floating-point behavior:* |=== @@ -349,31 +212,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t|acc_t - -|Any|signed 8|int8_t|int32_t -|Any|signed 16|int16_t|int32_t -|Any|signed 32|int32_t|int32_t -|MI, MT|fp16|fp16_t|fp16_t -|MI, MT|bf16|bf16_t|bf16_t -|MI, MT|fp32|fp32_t|fp32_t -|=== - ==== RECIPROCAL Elementwise reciprocal operation. For integer operation, a TABLE should be used with the appropriate ranges. -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/RECIPROCAL.adoc[] *Floating-point behavior:* |=== @@ -393,28 +236,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|fp16|fp16_t -|MI, MT|bf16|bf16_t -|MI, MT|fp32|fp32_t -|=== - ==== RSQRT Elementwise reciprocal square root operation. For integer operation, a TABLE should be used with the appropriate ranges. -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_out_t*|input1|shape|Input tensor -|Output|in_out_t*|output|shape|Output tensor of same type, size as the input tensor -|=== +include::{generated}/operators/RSQRT.adoc[] *Floating-point behavior:* |=== @@ -439,13 +265,3 @@ for_each(index in shape) { tensor_write<in_out_t>(output, shape, index, result); } ---- - -*Supported Data Types:* - -|=== -|Profile|Mode|in_out_t - -|MI, MT|fp16|fp16_t -|MI, MT|bf16|bf16_t -|MI, MT|fp32|fp32_t -|=== |