aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/supported_operators.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/supported_operators.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/supported_operators.py')
-rw-r--r--ethosu/vela/supported_operators.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py
index 4e989124..18496c54 100644
--- a/ethosu/vela/supported_operators.py
+++ b/ethosu/vela/supported_operators.py
@@ -137,7 +137,8 @@ class SupportedOperators:
def is_operator_supported(self, op):
if op.type not in SupportedOperators.supported_operators:
- print('Info: "{}" is not supported on the NPU. Placing on CPU instead'.format(op.type))
+ if not op.type.is_startup_init_op():
+ print('Info: "{}" is not supported on the NPU. Placing on CPU instead'.format(op.type))
return False
for constraint in self.generic_constraints:
valid, extra = constraint(op)