aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/nn_graph.py
diff options
context:
space:
mode:
authorFredrik Svedberg <fredrik.svedberg@arm.com>2023-02-13 11:32:12 +0100
committerFredrik Svedberg <fredrik.svedberg@arm.com>2023-02-13 15:46:27 +0000
commit33c01e68984bf455d3a1f00c7f43ab2a6bb75cbe (patch)
treea1e9aaff21357b679a463cf6f1cde6dafd6e18d1 /ethosu/vela/nn_graph.py
parent49396338b8b37544fff06dff45c0dc05c31e64e9 (diff)
downloadethos-u-vela-33c01e68984bf455d3a1f00c7f43ab2a6bb75cbe.tar.gz
MLBEDSW-7274 Add support for Variable Tensors
Added support for Variable Tensor, including offline planning. Change-Id: I39f33fee207f1f1a4574a0f53f7377eec8709e15 Signed-off-by: Fredrik Svedberg <fredrik.svedberg@arm.com>
Diffstat (limited to 'ethosu/vela/nn_graph.py')
-rw-r--r--ethosu/vela/nn_graph.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethosu/vela/nn_graph.py b/ethosu/vela/nn_graph.py
index 98979f64..846632df 100644
--- a/ethosu/vela/nn_graph.py
+++ b/ethosu/vela/nn_graph.py
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -197,7 +197,8 @@ class Subgraph:
if op.type in (Op.Placeholder, Op.SubgraphInput):
assert len(op.outputs) == 1
- self.input_tensors.append(op.outputs[0])
+ if not op.outputs[0].is_variable:
+ self.input_tensors.append(op.outputs[0])
for out in op.outputs:
if out not in visit_tensor_set: