aboutsummaryrefslogtreecommitdiff
path: root/tosa.xml
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2024-02-13 16:51:17 -0800
committerEric Kunze <eric.kunze@arm.com>2024-02-14 21:17:21 -0800
commit1f05883799957300ea88d7ec314a5897e6c0ccb1 (patch)
treeb4113fd73a80f9e7ac252c057663b2ff39d9eb65 /tosa.xml
parent74e2ceba954ed6111b3e3ce40c5ff88fe79ff043 (diff)
downloadspecification-1f05883799957300ea88d7ec314a5897e6c0ccb1.tar.gz
Add SIN/COS to elementwise operator set
Only defined for floating-point types. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ieae355076f9aac6882fab8530e6d7d9985a6e661
Diffstat (limited to 'tosa.xml')
-rw-r--r--tosa.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/tosa.xml b/tosa.xml
index 19822f6..27b49b8 100644
--- a/tosa.xml
+++ b/tosa.xml
@@ -1428,6 +1428,35 @@
</types>
<typesupport mode="signed 32" in_out_t="i32_t"/>
</operator>
+ <operator>
+ <name>COS</name>
+ <arguments>
+ <argument category="input" name="input" type="tensor_t" shape="shape" tensor-element-type="in_out_t">
+ <description>Input tensor</description>
+ <levellimit value="rank(shape)" limit="MAX_RANK"/>
+ <rank min="0" max="MAX_RANK"/>
+ </argument>
+ <argument category="output" name="output" type="tensor_t" shape="shape" tensor-element-type="in_out_t">
+ <description>Output tensor of same type and shape as input</description>
+ <rank min="0" max="MAX_RANK"/>
+ </argument>
+ </arguments>
+ <types>
+ <type name='in_out_t'/>
+ </types>
+ <typesupport mode="fp16" in_out_t="fp16_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ <typesupport mode="bf16" in_out_t="bf16_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ <typesupport mode="fp32" in_out_t="fp32_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ </operator>
<operator>
<name>EXP</name>
<arguments>
@@ -1675,6 +1704,35 @@
<profile name="MT"/>
</typesupport>
</operator>
+ <operator>
+ <name>SIN</name>
+ <arguments>
+ <argument category="input" name="input" type="tensor_t" shape="shape" tensor-element-type="in_out_t">
+ <description>Input tensor</description>
+ <levellimit value="rank(shape)" limit="MAX_RANK"/>
+ <rank min="0" max="MAX_RANK"/>
+ </argument>
+ <argument category="output" name="output" type="tensor_t" shape="shape" tensor-element-type="in_out_t">
+ <description>Output tensor of same type and shape as input</description>
+ <rank min="0" max="MAX_RANK"/>
+ </argument>
+ </arguments>
+ <types>
+ <type name='in_out_t'/>
+ </types>
+ <typesupport mode="fp16" in_out_t="fp16_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ <typesupport mode="bf16" in_out_t="bf16_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ <typesupport mode="fp32" in_out_t="fp32_t">
+ <profile name="MI"/>
+ <profile name="MT"/>
+ </typesupport>
+ </operator>
</operatorgroup>
<operatorgroup name="comparison">
<operator>