diff options
Diffstat (limited to 'ethosu/vela/operation_util.py')
-rw-r--r-- | ethosu/vela/operation_util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethosu/vela/operation_util.py b/ethosu/vela/operation_util.py index 4a4fd335..0fbed46b 100644 --- a/ethosu/vela/operation_util.py +++ b/ethosu/vela/operation_util.py @@ -44,6 +44,12 @@ def create_avgpool_nop(name: str) -> Operation: return op +def create_add_nop(name: str) -> Operation: + op = Operation(Op.Add, name) + op.run_on_npu = True + return op + + def create_depthwise_maxpool( name: str, ifm: Tensor, |