aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Alfvén <johan.alfven@arm.com>2022-05-09 13:02:24 +0200
committerJohan Alfvén <johan.alfven@arm.com>2022-05-09 15:15:46 +0200
commitab677b30ab45a86e8f60441d013d2725fa707129 (patch)
tree8cbd8ccd4a5c620334c166deb5efe473f5cb4feb
parentb5df773e92051004158046b0ed2c7b802198de6e (diff)
downloadethos-u-vela-ab677b30ab45a86e8f60441d013d2725fa707129.tar.gz
MLBEDSW-6500: Address offset out of range
- Cascading a slice operator with read offsets is not supported by the rolling buffer mechanism causing the address to get out of range. - The fix is to prevent ops to be cascaded if they have read offsets. Signed-off-by: Johan Alfven <johan.alfven@arm.com> Change-Id: Iea7f054ac4b5a7dadf905bbe947033247284c27e
-rw-r--r--ethosu/vela/cascade_builder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/cascade_builder.py b/ethosu/vela/cascade_builder.py
index 4c3f75b..4703583 100644
--- a/ethosu/vela/cascade_builder.py
+++ b/ethosu/vela/cascade_builder.py
@@ -92,6 +92,8 @@ class CascadeBuilder:
return (
sched_op.op_type.npu_block_type not in non_cascadable_blocks
and cost.stripe.height < sched_op.ofm.shape.height
+ and sched_op.parent_op.read_offsets[0] is None
+ and sched_op.parent_op.read_offsets[1] is None
)
def _estimate_sram_usage(self, sched_op, cost) -> int: