diff options
author | Johan Alfvén <johan.alfven@arm.com> | 2022-05-09 13:02:24 +0200 |
---|---|---|
committer | Johan Alfvén <johan.alfven@arm.com> | 2022-05-09 15:15:46 +0200 |
commit | ab677b30ab45a86e8f60441d013d2725fa707129 (patch) | |
tree | 8cbd8ccd4a5c620334c166deb5efe473f5cb4feb | |
parent | b5df773e92051004158046b0ed2c7b802198de6e (diff) | |
download | ethos-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |