From 526f6c7b5d20e967109ca92c8fc54c26c0438135 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Fri, 12 Jan 2024 17:18:42 -0800 Subject: Add section of shape operators Rework of the shape operations. Shape operations are now done in shape specific operators rather than being based on type. shape_t is reworked to a list of size_t values. Signed-off-by: Eric Kunze Change-Id: I2fca0728f9caa6a6fc34a8ce9e389bb581eea959 --- pseudocode/operators/ADD_SHAPE.tosac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pseudocode/operators/ADD_SHAPE.tosac (limited to 'pseudocode/operators/ADD_SHAPE.tosac') diff --git a/pseudocode/operators/ADD_SHAPE.tosac b/pseudocode/operators/ADD_SHAPE.tosac new file mode 100644 index 0000000..edb7c20 --- /dev/null +++ b/pseudocode/operators/ADD_SHAPE.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 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. + +ERROR_IF(length(input1) != length(input2)); + +for(int32_t index=0; index < rank(input1); index++) { + output[index] = apply_add_s(input1[index], input2[index]); +} -- cgit v1.2.1