aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/reader_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/reader_util.py')
-rw-r--r--ethosu/vela/reader_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/reader_util.py b/ethosu/vela/reader_util.py
index d30a7bb3..6d2439c9 100644
--- a/ethosu/vela/reader_util.py
+++ b/ethosu/vela/reader_util.py
@@ -51,7 +51,7 @@ def fixup_tensors(input_tensors, tensors):
if tens.ops != []:
tens.error("This subgraph input tensor has unexpected driving operators.")
- op = Operation(Op.Placeholder, tens.name)
+ op = Operation(Op.Placeholder if tens.values is None else Op.Const, tens.name)
op.set_output_tensor(tens)
for tens in tensors: