diff options
author | Raul Farkas <raul.farkas@arm.com> | 2023-03-16 16:38:05 +0000 |
---|---|---|
committer | Raul Farkas <raul.farkas@arm.com> | 2023-03-27 16:35:56 +0100 |
commit | 72c6a2414205e033279f80b622cdf479c05a4f5b (patch) | |
tree | 35dedce67cedd2fe5533cf0beb2942a7f31199e3 /ethosu/vela/extract_npu_subgraphs.py | |
parent | 430002df36f79d035e31e8304fb8b176129cd3cc (diff) | |
download | ethos-u-vela-72c6a2414205e033279f80b622cdf479c05a4f5b.tar.gz |
MLBEDSW-6343: Remove op_index constraint
Remove op_index constraint and force linear format for all Conv2D that
have strides that can be optimised.
Change-Id: Idef3508ab074ea9abeacac030eaaa15a00ad1211
Signed-off-by: Raul Farkas <raul.farkas@arm.com>
Diffstat (limited to 'ethosu/vela/extract_npu_subgraphs.py')
-rw-r--r-- | ethosu/vela/extract_npu_subgraphs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/extract_npu_subgraphs.py b/ethosu/vela/extract_npu_subgraphs.py index bf637b83..5e9a5b53 100644 --- a/ethosu/vela/extract_npu_subgraphs.py +++ b/ethosu/vela/extract_npu_subgraphs.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 # @@ -250,7 +250,7 @@ def extract_subgraph(nng, orig_sg, arch): for tens in curr_sg.output_tensors: # ofm can depend on multiple ops. These ops can be divided into different NPU # nodes due to CPU nodes. If that is the case the ofm must be NHWC. - tens.needs_linear_format = True + tens.force_linear_format = True return new_subgraphs |