diff --git a/ethosu/regor/architecture/ethosu85/ethos_u85.cpp b/ethosu/regor/architecture/ethosu85/ethos_u85.cpp index bcb1b7c35280b36de1202bdd2d9a30c4d57a7127..ec616dba1bfc3b107d3127172202f620422f9c64 100644 --- a/ethosu/regor/architecture/ethosu85/ethos_u85.cpp +++ b/ethosu/regor/architecture/ethosu85/ethos_u85.cpp @@ -1,5 +1,5 @@ // -// SPDX-FileCopyrightText: Copyright 2021-2024 Arm Limited and/or its affiliates +// SPDX-FileCopyrightText: Copyright 2021-2025 Arm Limited and/or its affiliates // // SPDX-License-Identifier: Apache-2.0 // @@ -854,6 +854,11 @@ Shape ArchEthosU85::FindDepthwiseConfig(const ArchitectureConfigQuery &query, co { forceReduce = (forceReduce << 1) | 1; } + else if ( depth > common.granule.Depth() ) + { + // Last resort, reducing depth + depth = std::max(depth / 2, common.granule.Depth()); + } else { assert(false);