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/GREATER.tosac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pseudocode/operators/GREATER.tosac') diff --git a/pseudocode/operators/GREATER.tosac b/pseudocode/operators/GREATER.tosac index 3155f23..6874bd0 100644 --- a/pseudocode/operators/GREATER.tosac +++ b/pseudocode/operators/GREATER.tosac @@ -9,8 +9,8 @@ ERROR_IF(shape != broadcast_shape(shape1, shape2)); for_each(index in shape) { - dim_t index1 = apply_broadcast(shape, shape1, index); - dim_t index2 = apply_broadcast(shape, shape2, index); + shape_t index1 = apply_broadcast(shape, shape1, index); + shape_t index2 = apply_broadcast(shape, shape2, index); in_t value1 = tensor_read(input1, shape1, index1); in_t value2 = tensor_read(input2, shape2, index2); out_t result; -- cgit v1.2.1