diff options
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 |