diff options
author | Louis Verhaard <louis.verhaard@arm.com> | 2020-10-15 08:39:44 +0200 |
---|---|---|
committer | Louis Verhaard <louis.verhaard@arm.com> | 2020-10-15 16:36:29 +0200 |
commit | 5f2ea2ff77b62d12fc46ae8d08c7815a2a9caae2 (patch) | |
tree | 17b7188a9e077304b016bbc925d85fe5b75e189f /ethosu/vela | |
parent | 1068362a83dd15613561189c00e364cddfd3071d (diff) | |
download | ethos-u-vela-5f2ea2ff77b62d12fc46ae8d08c7815a2a9caae2.tar.gz |
MLBEDSW-3219: Suppress CPU info Const/Placeholder
Suppress info print that Const/Placeholder/SubgraphInput are not supported
on the NPU.
Change-Id: I6f323b64185b01b619b584c1473ae61d010ab3a4
Signed-off-by: Louis Verhaard <louis.verhaard@arm.com>
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/supported_operators.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py index 4e989124..66c74fce 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 op.type not in (Op.Placeholder, Op.SubgraphInput, Op.Const): + print("Info: {} '{}' is not supported on the NPU. Placing on CPU instead".format(op.type, op.name)) return False for constraint in self.generic_constraints: valid, extra = constraint(op) |