diff options
author | Andreas Nevalainen <andreas.nevalainen@arm.com> | 2020-09-08 15:31:02 +0200 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2020-09-11 12:18:29 +0000 |
commit | e1cc3de77668b66ea413c570de7161e2bba89502 (patch) | |
tree | a24d717bc947f64d8f78ddcd84e7852562f79372 /ethosu/vela/nn_graph.py | |
parent | 2b7a1628ab26b453a0932ce845f41fef8e5ade34 (diff) | |
download | ethos-u-vela-e1cc3de77668b66ea413c570de7161e2bba89502.tar.gz |
MLBEDSW-2813: Handle None tensor when parsing operators
Signed-off-by: Andreas Nevalainen <andreas.nevalainen@arm.com>
Change-Id: I49c8d283eaa8d44839b94aaf4e90ec35365dc13f
Diffstat (limited to 'ethosu/vela/nn_graph.py')
-rw-r--r-- | ethosu/vela/nn_graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/nn_graph.py b/ethosu/vela/nn_graph.py index b495828e..21cd80b9 100644 --- a/ethosu/vela/nn_graph.py +++ b/ethosu/vela/nn_graph.py @@ -301,7 +301,7 @@ class Subgraph: all_ops.append(op) def visit_tensor(tens): - if tens in visit_tensor_set: + if tens is None or tens in visit_tensor_set: return visit_tensor_set.add(tens) for op in tens.ops: |