From ab677b30ab45a86e8f60441d013d2725fa707129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Alfv=C3=A9n?= Date: Mon, 9 May 2022 13:02:24 +0200 Subject: 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 Change-Id: Iea7f054ac4b5a7dadf905bbe947033247284c27e --- ethosu/vela/cascade_builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethosu/vela/cascade_builder.py b/ethosu/vela/cascade_builder.py index 4c3f75b7..4703583b 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: -- cgit v1.2.1