From 58098a7b1ffcf41da759f862deb753c82fe5b4b0 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Fri, 5 Aug 2022 15:40:12 -0700 Subject: 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 --- chapters/comparison.adoc | 62 +++--------------------------------------------- 1 file changed, 3 insertions(+), 59 deletions(-) (limited to 'chapters/comparison.adoc') diff --git a/chapters/comparison.adoc b/chapters/comparison.adoc index 5c27071..9bc28ad 100644 --- a/chapters/comparison.adoc +++ b/chapters/comparison.adoc @@ -13,15 +13,7 @@ Elementwise comparison operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_t*|input1|shape1|Input tensor -|Input|in_t*|input2|shape2|Input tensor with the same rank as input1 -|Output|out_t*|output|shape|Output tensor with broadcast shape if necessary -|=== +include::{generated}/operators/EQUAL.adoc[] *Operation Function:* @@ -41,30 +33,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* - -|=== -|Profile|Mode|in_t|out_t - -|Any|signed 32|int32_t|bool_t -|MI, MT|fp16|fp16_t|bool_t -|MI, MT|bf16|bf16_t|bool_t -|MI, MT|fp32|fp32_t|bool_t -|=== - ==== GREATER Elementwise greater than comparison operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_t*|input1|shape1|Input tensor -|Input|in_t*|input2|shape2|Input tensor with the same rank as input1 -|Output|out_t*|output|shape|Output tensor with broadcast shape if necessary -|=== +include::{generated}/operators/GREATER.adoc[] *Operation Function:* @@ -84,29 +57,11 @@ for_each(index in shape) { } ---- -*Supported Data Types:* -|=== -|Profile|Mode|in_t|out_t - -|Any|signed 32|int32_t|bool_t -|MI, MT|fp16|fp16_t|bool_t -|MI, MT|bf16|bf16_t|bool_t -|MI, MT|fp32|fp32_t|bool_t -|=== - ==== GREATER_EQUAL Elementwise comparison operation -*Arguments:* - -|=== -|Argument|Type|Name|Shape|Description - -|Input|in_t*|input1|shape1|Input tensor -|Input|in_t*|input2|shape2|Input tensor with the same rank as input1 -|Output|out_t*|output|shape|Output tensor with broadcast shape if necessary -|=== +include::{generated}/operators/GREATER_EQUAL.adoc[] *Operation Function:* @@ -125,14 +80,3 @@ for_each(index in shape) { tensor_write(output, shape, index, result); } ---- - -*Supported Data Types:* - -|=== -|Profile|Mode|in_t|out_t - -|Any|signed 32|int32_t|bool_t -|MI, MT|fp16|fp16_t|bool_t -|MI, MT|bf16|bf16_t|bool_t -|MI, MT|fp32|fp32_t|bool_t -|=== -- cgit v1.2.1