aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_writer.py
diff options
context:
space:
mode:
authorLouis Verhaard <louis.verhaard@arm.com>2020-10-14 09:18:31 +0200
committerLouis Verhaard <louis.verhaard@arm.com>2020-10-14 09:34:51 +0200
commit04986c0016e59993563490fe67052371fc0e1ad2 (patch)
tree8db9f1ac54162c9857b6d89c45b180f48755169d /ethosu/vela/tflite_writer.py
parent184b2502fd359ff106acf4230d5f77beac0d22ab (diff)
downloadethos-u-vela-04986c0016e59993563490fe67052371fc0e1ad2.tar.gz
MLBEDSW-3219: Suppress CPU info for Const/Placeholder
Suppress info print that Const/Placeholder/SubgraphInput are not supported on the NPU. Change-Id: I689d25481df0cd10487484c9f639e4253df081ee Signed-off-by: Louis Verhaard <louis.verhaard@arm.com>
Diffstat (limited to 'ethosu/vela/tflite_writer.py')
-rw-r--r--ethosu/vela/tflite_writer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/tflite_writer.py b/ethosu/vela/tflite_writer.py
index e24aa282..4cb5df17 100644
--- a/ethosu/vela/tflite_writer.py
+++ b/ethosu/vela/tflite_writer.py
@@ -77,7 +77,7 @@ class TFLiteSerialiser:
self.scratch_fast_buf_id = 1 # Always assign scratch_fast to buffer 1
self.buffers_to_write = [] # have an empty array there
- self.ops_to_ignore = set((Op.Const, Op.Placeholder, Op.SubgraphInput))
+ self.ops_to_ignore = Op.op_set(Op.is_startup_init_op)
self.tensors_to_reshape = {}