diff options
author | Johan Alfvén <johan.alfven@arm.com> | 2022-02-04 11:19:17 +0100 |
---|---|---|
committer | Johan Alfvén <johan.alfven@arm.com> | 2022-02-07 10:13:09 +0100 |
commit | 8d57aaa722a4f0430d7e7520d194d1df5394eb6c (patch) | |
tree | b691d998389809d04db58576bb31fecf30a7c3f3 /ethosu/vela/live_range.py | |
parent | e546defed8b204b175f708fa51366462db41ad07 (diff) | |
download | ethos-u-vela-8d57aaa722a4f0430d7e7520d194d1df5394eb6c.tar.gz |
MLBEDSW-6148: Allow overwrite of subgraph input
This change will allow the subgraph's input tensor
to be reused/overwritten by the output from an elementwise op
if there is only one consumer attached to the input tensor.
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Change-Id: I317188af11a5470614770e18dc8973462fd5f21c
Diffstat (limited to 'ethosu/vela/live_range.py')
-rw-r--r-- | ethosu/vela/live_range.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/live_range.py b/ethosu/vela/live_range.py index 5aec0dfb..1aaaadd5 100644 --- a/ethosu/vela/live_range.py +++ b/ethosu/vela/live_range.py @@ -158,7 +158,7 @@ def tensor_should_be_ignored(tens, target_mem_area, target_mem_type_set): def merge_elementwise_op_ranges(sg, sched_op, lr_graph, target_mem_area, target_mem_type_set): def _tensor_should_be_ignored(tens): - if tens in sg.input_tensors + sg.output_tensors: + if tens.ifm_write_protected: return True return tensor_should_be_ignored(tens, target_mem_area, target_mem_type_set) |