diff options
Diffstat (limited to 'ethosu/vela/operation_util.py')
-rw-r--r-- | ethosu/vela/operation_util.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ethosu/vela/operation_util.py b/ethosu/vela/operation_util.py index 7b66dff3..21f9dbed 100644 --- a/ethosu/vela/operation_util.py +++ b/ethosu/vela/operation_util.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com> +# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> # # SPDX-License-Identifier: Apache-2.0 # @@ -51,6 +51,12 @@ def create_add_nop(name: str) -> Operation: return op +def create_memcpy(name: str) -> Operation: + op = Operation(Op.Memcpy, name) + op.run_on_npu = True + return op + + def create_pad_nop(name: str) -> Operation: op = Operation(Op.Pad, name) op.run_on_npu = True |