aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/TRANSPOSE.tosac
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2024-02-08 11:03:31 +0000
committerKevin Petit <kevin.petit@arm.com>2024-02-23 18:34:06 +0000
commitafaaa673e1620315e0d7d863d7bcef1a2dc54df9 (patch)
treebdba3f5658083c12694ae28448ed8551039ced6d /pseudocode/operators/TRANSPOSE.tosac
parent0635552aed54eee35ca417901b65754a07a12dae (diff)
downloadspecification-afaaa673e1620315e0d7d863d7bcef1a2dc54df9.tar.gz
pseudocode: a collection of variable declaration fixes
Only cases where types are obvious. - Add missing types - Do not re-declare variables - Fix scope of declaration Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: I7d44d9adde606094e0a7910fb438649521ff3ec0
Diffstat (limited to 'pseudocode/operators/TRANSPOSE.tosac')
-rw-r--r--pseudocode/operators/TRANSPOSE.tosac4
1 files changed, 2 insertions, 2 deletions
diff --git a/pseudocode/operators/TRANSPOSE.tosac b/pseudocode/operators/TRANSPOSE.tosac
index 3981f54..09fea65 100644
--- a/pseudocode/operators/TRANSPOSE.tosac
+++ b/pseudocode/operators/TRANSPOSE.tosac
@@ -21,13 +21,13 @@ for_each(index in perms) {
// Ensure that the output shapes have the properly
// permuted shapes
-for(i = 0; i < rank(shape); i++) {
+for(int32_t i = 0; i < rank(shape); i++) {
ERROR_IF(shape1[perms[i]] != shape[i]);
}
for_each(index in shape) {
shape_t tmp_index = index;
- for(i = 0; i < rank(shape); i++) {
+ for(int32_t i = 0; i < rank(shape); i++) {
tmp_index[perms[i]] = index[i];
}
in_out_t value = tensor_read<in_out_t>(input1, shape1, tmp_index);