aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/RESCALE.tosac
diff options
context:
space:
mode:
Diffstat (limited to 'pseudocode/operators/RESCALE.tosac')
-rw-r--r--pseudocode/operators/RESCALE.tosac1
1 files changed, 1 insertions, 0 deletions
diff --git a/pseudocode/operators/RESCALE.tosac b/pseudocode/operators/RESCALE.tosac
index 555d4ca..e2957a4 100644
--- a/pseudocode/operators/RESCALE.tosac
+++ b/pseudocode/operators/RESCALE.tosac
@@ -23,6 +23,7 @@ for_each(index in shape) {
ERROR_IF(out_t == i32_t && input_unsigned);
ERROR_IF(in_t == i32_t && output_unsigned);
ERROR_IF(in_t == i48_t && output_unsigned);
+ ERROR_IF(per_channel && rank(input) < 1);
in_t in_value = tensor_read<in_t>(input, shape, index);