pseudocode: use correct variable to write out data in REDUCE_MIN

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Change-Id: I7cad7d2bc6212e1765fbe3027abfb1fe37111445
diff --git a/pseudocode/operators/REDUCE_MIN.tosac b/pseudocode/operators/REDUCE_MIN.tosac
index 5eaa702..7e1f92d 100644
--- a/pseudocode/operators/REDUCE_MIN.tosac
+++ b/pseudocode/operators/REDUCE_MIN.tosac
@@ -20,6 +20,6 @@
             acc = apply_min_s<in_out_t>(acc, value);
         }
         out_index = flatten(left_index, [0], right_index);
-        tensor_write<in_out_t>(output, shape, out_index, out);
+        tensor_write<in_out_t>(output, shape, out_index, acc);
     }
 }