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/tensor.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/tensor.py')
-rw-r--r-- | ethosu/vela/tensor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/tensor.py b/ethosu/vela/tensor.py index ab63afd8..82de8973 100644 --- a/ethosu/vela/tensor.py +++ b/ethosu/vela/tensor.py @@ -370,6 +370,7 @@ class Tensor: "resampling_mode", "src_tensor", "needs_linear_format", + "ifm_write_protected", ) AllocationQuantum = 16 @@ -416,6 +417,7 @@ class Tensor: self.resampling_mode: resampling_mode = resampling_mode.NONE self.needs_linear_format = True + self.ifm_write_protected = False # Reference to parent-tensor if this tensor is a clone self.src_tensor = None |