From 7e5d187c612fcc715ea3f7f0c900eb13af75a660 Mon Sep 17 00:00:00 2001 From: Kevin Petit Date: Thu, 25 Jan 2024 14:53:20 +0000 Subject: Add missing pseudocode for CONST, CUSTOM, ERF, and IDENTITY operators Signed-off-by: Kevin Petit Change-Id: Icb824233e5be84ac0eb693459b65441e9ae6c545 --- pseudocode/operators/CONST.tosac | 10 ++++++++++ pseudocode/operators/CUSTOM.tosac | 11 +++++++++++ pseudocode/operators/ERF.tosac | 14 ++++++++++++++ pseudocode/operators/IDENTITY.tosac | 10 ++++++++++ 4 files changed, 45 insertions(+) create mode 100644 pseudocode/operators/CONST.tosac create mode 100644 pseudocode/operators/CUSTOM.tosac create mode 100644 pseudocode/operators/ERF.tosac create mode 100644 pseudocode/operators/IDENTITY.tosac (limited to 'pseudocode') 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(input, shape, index); + in_out_t value = erf(value1); + tensor_write(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; -- cgit v1.2.1