diff options
author | Patrik Gustavsson <patrik.gustavsson@arm.com> | 2021-01-21 08:28:55 +0100 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2021-01-28 09:09:58 +0000 |
commit | 3a26920b7cd302364d68830eb6e374311ce17f22 (patch) | |
tree | 359913c1fbfc443611865d628414182554b0710e /ethosu/vela/high_level_command_stream_generator.py | |
parent | e22ba8cb3090886b2d80a2df0e599dbf4cd7f483 (diff) | |
download | ethos-u-vela-3a26920b7cd302364d68830eb6e374311ce17f22.tar.gz |
MLBEDSW-3772 Reshape removal
-Removed reshapes in the original graph
-Removed the addition of reshapes to the
optimized graph
-Reshapes with different ifm/ofm quantisation will remain
Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com>
Change-Id: I94862be53dac0d7434815e2aee5ca678228495f8
Diffstat (limited to 'ethosu/vela/high_level_command_stream_generator.py')
-rw-r--r-- | ethosu/vela/high_level_command_stream_generator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ethosu/vela/high_level_command_stream_generator.py b/ethosu/vela/high_level_command_stream_generator.py index 60e62aa6..e514e76c 100644 --- a/ethosu/vela/high_level_command_stream_generator.py +++ b/ethosu/vela/high_level_command_stream_generator.py @@ -374,13 +374,13 @@ def calc_allowed_ofm_ifm_overlap_for_pass_list(strat, passes, block_configs): if cmd.is_npu_pass_command(): if cmd.is_first: ifm_read = cmd.ifm_tensor.address_offset_for_coordinate( - cmd.ifm_box.start_coord, cmd.ps.ifm_shapes[0].as_list(), is_top_box=False + cmd.ifm_box.start_coord, cmd.ps.ifm_shapes[0], is_top_box=False ) if ifm_read is None: return 0 if cmd.is_last: write_offset = cmd.ofm_tensor.address_offset_for_coordinate( - cmd.ofm_box.end_coord, cmd.ps.ofm_shapes[0].as_list(), is_top_box=True + cmd.ofm_box.end_coord, cmd.ps.ofm_shapes[0], is_top_box=True ) if write_offset is None: return 0 @@ -393,7 +393,7 @@ def calc_allowed_ofm_ifm_overlap_for_pass_list(strat, passes, block_configs): if cmd.is_first: ifm_read = cmd.ifm_tensor.address_offset_for_coordinate( - cmd.ifm_box.end_coord, cmd.ps.ifm_shapes[0].as_list(), is_top_box=True + cmd.ifm_box.end_coord, cmd.ps.ifm_shapes[0], is_top_box=True ) min_overlap = max(min_overlap, 0) |