From 1c16f5447886826cd86d0fe2893dcd193c42dcec Mon Sep 17 00:00:00 2001 From: Kevin Petit Date: Tue, 16 Jan 2024 21:40:08 +0000 Subject: pseudocode: a collection of trivial fixes - Add missing parenthesis in ARITHMETIC_SHIFT_RIGHT - Add missing semicolons - Remove stray dot in VARIABLE_WRITE Change-Id: I28ab7c80c735995437588fffeffb1f12d112f3ec Signed-off-by: Kevin Petit --- pseudocode/operators/TRANSPOSE.tosac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pseudocode/operators/TRANSPOSE.tosac') diff --git a/pseudocode/operators/TRANSPOSE.tosac b/pseudocode/operators/TRANSPOSE.tosac index a8f0815..e75db79 100644 --- a/pseudocode/operators/TRANSPOSE.tosac +++ b/pseudocode/operators/TRANSPOSE.tosac @@ -22,13 +22,13 @@ for_each(index in perms) { // Ensure that the output shapes have the properly // permuted shapes for(i = 0; i < rank(shape); i++) { - ERROR_IF(shape1[perms[i]] != shape[i]) + ERROR_IF(shape1[perms[i]] != shape[i]); } for_each(index in shape) { dim_t tmp_index = index; for(i = 0; i < rank(shape); i++) { - tmp_index[perms[i]] = index[i] + tmp_index[perms[i]] = index[i]; } in_out_t value = tensor_read(input1, shape1, tmp_index); tensor_write(output, shape, index, value); -- cgit v1.2.1