aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/operation.py
diff options
context:
space:
mode:
authorMichael McGeagh <michael.mcgeagh@arm.com>2020-08-07 11:54:28 +0100
committerFredrik Knutsson <fredrik.knutsson.hunnebo@gmail.com>2020-08-12 06:30:46 +0000
commitc5b549b599ff459a29115a48e8f067eaa5891638 (patch)
tree62b22dfda83f4665b10f549d9f9d7ddaedff15a1 /ethosu/vela/operation.py
parent5778ffdab61a46369c73c91f2c6289ba9833e3a3 (diff)
downloadethos-u-vela-c5b549b599ff459a29115a48e8f067eaa5891638.tar.gz
MLBEDSW-2637 Utilise new tensor and operator funcs
add_input_tensor, set_output_tensor, create_const_tensor and create_reshape_tensor have recently been added. This replaces all found existing instances with these new helper functions Signed-off-by: Michael McGeagh <michael.mcgeagh@arm.com> Change-Id: If33be8dbf237b2087b562b03cdeb51da1f99a786
Diffstat (limited to 'ethosu/vela/operation.py')
-rw-r--r--ethosu/vela/operation.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py
index adbbff51..0290e811 100644
--- a/ethosu/vela/operation.py
+++ b/ethosu/vela/operation.py
@@ -307,10 +307,9 @@ input and output tensors, as well as an attribute dictionary."""
return input_tens, outputs, axis, offset_start, offset_end
def set_activation_lut(self, lut_tensor):
- lut_tensor.consumer_list.append(self)
self.attrs["fused_activation_function"] = "LUT"
self.activation_lut = lut_tensor
- self.inputs.append(lut_tensor)
+ self.add_input_tensor(lut_tensor)
def add_input_tensor(self, tens):
self.inputs.append(tens)