aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators
diff options
context:
space:
mode:
Diffstat (limited to 'pseudocode/operators')
-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;