diff options
author | Louis Verhaard <louis.verhaard@arm.com> | 2020-10-14 09:18:31 +0200 |
---|---|---|
committer | Louis Verhaard <louis.verhaard@arm.com> | 2020-10-14 09:34:51 +0200 |
commit | 04986c0016e59993563490fe67052371fc0e1ad2 (patch) | |
tree | 8db9f1ac54162c9857b6d89c45b180f48755169d /ethosu/vela/operation.py | |
parent | 184b2502fd359ff106acf4230d5f77beac0d22ab (diff) | |
download | ethos-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/operation.py')
-rw-r--r-- | ethosu/vela/operation.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py index 710511c6..9c438556 100644 --- a/ethosu/vela/operation.py +++ b/ethosu/vela/operation.py @@ -271,6 +271,9 @@ class Op(Enum): def needs_bias(self): return bool(self.info.indices.biases) + def is_startup_init_op(self): + return self in (Op.Const, Op.Placeholder, Op.SubgraphInput) + @classmethod def op_set(cls, predicate): # Returns the set of all operator codes that fulfill the given predicate |