aboutsummaryrefslogtreecommitdiff
path: root/pseudocode
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2024-01-25 14:53:20 +0000
committerEric Kunze <eric.kunze@arm.com>2024-01-28 15:59:46 +0000
commit7e5d187c612fcc715ea3f7f0c900eb13af75a660 (patch)
treea933798aa65c5bdc580f51538ffa28563cf69ebf /pseudocode
parent608588390a90e6e337a592b62cf811d1ea8ea0fd (diff)
downloadspecification-7e5d187c612fcc715ea3f7f0c900eb13af75a660.tar.gz
Add missing pseudocode for CONST, CUSTOM, ERF, and IDENTITY operators
Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: Icb824233e5be84ac0eb693459b65441e9ae6c545
Diffstat (limited to 'pseudocode')
-rw-r--r--pseudocode/operators/CONST.tosac10
-rw-r--r--pseudocode/operators/CUSTOM.tosac11
-rw-r--r--pseudocode/operators/ERF.tosac14
-rw-r--r--pseudocode/operators/IDENTITY.tosac10
4 files changed, 45 insertions, 0 deletions
diff --git a/pseudocode/operators/CONST.tosac b/pseudocode/operators/CONST.tosac
new file mode 100644
index 0000000..d14ead2
--- /dev/null
+++ b/pseudocode/operators/CONST.tosac
@@ -0,0 +1,10 @@
+//
+// This confidential and proprietary software may be used only as
+// authorised by a licensing agreement from ARM Limited
+// (C) COPYRIGHT 2024 ARM Limited
+// ALL RIGHTS RESERVED
+// The entire notice above must be reproduced on all authorised
+// copies and copies may only be made to the extent permitted
+// by a licensing agreement from ARM Limited.
+
+output = values;
diff --git a/pseudocode/operators/CUSTOM.tosac b/pseudocode/operators/CUSTOM.tosac
new file mode 100644
index 0000000..6a4f224
--- /dev/null
+++ b/pseudocode/operators/CUSTOM.tosac
@@ -0,0 +1,11 @@
+//
+// This confidential and proprietary software may be used only as
+// authorised by a licensing agreement from ARM Limited
+// (C) COPYRIGHT 2020-2024 ARM Limited
+// ALL RIGHTS RESERVED
+// The entire notice above must be reproduced on all authorised
+// copies and copies may only be made to the extent permitted
+// by a licensing agreement from ARM Limited.
+
+
+// Implementation defined behavior
diff --git a/pseudocode/operators/ERF.tosac b/pseudocode/operators/ERF.tosac
new file mode 100644
index 0000000..e226a52
--- /dev/null
+++ b/pseudocode/operators/ERF.tosac
@@ -0,0 +1,14 @@
+//
+// This confidential and proprietary software may be used only as
+// authorised by a licensing agreement from ARM Limited
+// (C) COPYRIGHT 2020-2024 ARM Limited
+// ALL RIGHTS RESERVED
+// The entire notice above must be reproduced on all authorised
+// copies and copies may only be made to the extent permitted
+// by a licensing agreement from ARM Limited.
+
+for_each(index in shape) {
+ in_out_t value1 = tensor_read<in_out_t>(input, shape, index);
+ in_out_t value = erf<in_out_t>(value1);
+ tensor_write<in_out_t>(output, shape, index, value);
+}
diff --git a/pseudocode/operators/IDENTITY.tosac b/pseudocode/operators/IDENTITY.tosac
new file mode 100644
index 0000000..28d71af
--- /dev/null
+++ b/pseudocode/operators/IDENTITY.tosac
@@ -0,0 +1,10 @@
+//
+// This confidential and proprietary software may be used only as
+// authorised by a licensing agreement from ARM Limited
+// (C) COPYRIGHT 2024 ARM Limited
+// ALL RIGHTS RESERVED
+// The entire notice above must be reproduced on all authorised
+// copies and copies may only be made to the extent permitted
+// by a licensing agreement from ARM Limited.
+
+output = input1;