From e6b94bb0a6d6021c5e575aef80fbcaaa332d7e33 Mon Sep 17 00:00:00 2001 From: Patrik Gustavsson Date: Wed, 5 May 2021 08:30:41 +0200 Subject: MLBEDSW-4534 Limit ifm box depth Limit the ifm box depth to ifm shape depth Signed-off-by: Patrik Gustavsson Change-Id: I889aed9ef7e338faa1fca074fb2843fa2cedecc8 --- ethosu/vela/high_level_command_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu/vela/high_level_command_stream.py') diff --git a/ethosu/vela/high_level_command_stream.py b/ethosu/vela/high_level_command_stream.py index 53c5e01f..19a363c3 100644 --- a/ethosu/vela/high_level_command_stream.py +++ b/ethosu/vela/high_level_command_stream.py @@ -62,7 +62,7 @@ class Box: new_start_coord[-1] = 0 new_end_coord[-1] = ifm_shape.depth - if npu_block_type in (NpuBlockType.ElementWise, NpuBlockType.ConvolutionMxN) and len(new_end_coord) >= 1: + if len(new_end_coord) >= 1: new_end_coord[-1] = min(new_end_coord[-1], ifm_shape.depth) if len(new_end_coord) >= 2: new_end_coord[-2] = min(new_end_coord[-2], ifm_shape.width * upscaling_factor) -- cgit v1.2.1