aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tensor.py
diff options
context:
space:
mode:
authorJohan Alfvén <johan.alfven@arm.com>2022-02-04 11:19:17 +0100
committerJohan Alfvén <johan.alfven@arm.com>2022-02-07 10:13:09 +0100
commit8d57aaa722a4f0430d7e7520d194d1df5394eb6c (patch)
treeb691d998389809d04db58576bb31fecf30a7c3f3 /ethosu/vela/tensor.py
parente546defed8b204b175f708fa51366462db41ad07 (diff)
downloadethos-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.py2
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