aboutsummaryrefslogtreecommitdiff
path: root/tosa.xsd
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2023-07-18 15:20:53 -0700
committerEric Kunze <eric.kunze@arm.com>2023-08-17 09:32:28 -0700
commitfb0284e2912bd5fd73bf6f476901490e04c330a2 (patch)
tree1784e40ad84a91e751679a4cbdf6cd33be1eefdb /tosa.xsd
parentb5b067819e5de11153b41cf3d26da4f3f9dd23e8 (diff)
downloadspecification-fb0284e2912bd5fd73bf6f476901490e04c330a2.tar.gz
Change TOSA specification to signless types
Integer inputs and outputs to TOSA operators are now defined as signless values. In most instances the operator will used signed arithmetic as indicated in previous versions of the specification resulting in little functional change to the specification. New attributes have been added to the RESCALE operator to indicate whether the input and output values should be treated as signed or unsigned. Explicit use of static_cast, sign_extend, zero_extend and truncate are added to the pseudocode to avoid ambiguity. Change-Id: I71c67d3e5aeaabc418c768f821fce6ee3eebb65b
Diffstat (limited to 'tosa.xsd')
-rw-r--r--tosa.xsd12
1 files changed, 5 insertions, 7 deletions
diff --git a/tosa.xsd b/tosa.xsd
index 440dbbd..8a3c307 100644
--- a/tosa.xsd
+++ b/tosa.xsd
@@ -33,13 +33,11 @@
<xs:restriction base="xs:string">
<xs:enumeration value="-"/>
<xs:enumeration value="bool_t"/>
- <xs:enumeration value="int4_t"/>
- <xs:enumeration value="int8_t"/>
- <xs:enumeration value="uint8_t"/>
- <xs:enumeration value="int16_t"/>
- <xs:enumeration value="uint16_t"/>
- <xs:enumeration value="int32_t"/>
- <xs:enumeration value="int48_t"/>
+ <xs:enumeration value="i4_t"/>
+ <xs:enumeration value="i8_t"/>
+ <xs:enumeration value="i16_t"/>
+ <xs:enumeration value="i32_t"/>
+ <xs:enumeration value="i48_t"/>
<xs:enumeration value="fp16_t"/>
<xs:enumeration value="bf16_t"/>
<xs:enumeration value="fp32_t"/>