From a9d9ca200f61172a0d97d5c2820d264612c11b12 Mon Sep 17 00:00:00 2001 From: Alexander Nesterov Date: Mon, 22 Jan 2024 17:10:46 +0100 Subject: [PATCH] update nhwc check 2 --- src/plugins/intel_cpu/src/nodes/deconv.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/intel_cpu/src/nodes/deconv.cpp b/src/plugins/intel_cpu/src/nodes/deconv.cpp index 6aec859149182d..7e5d206e3d5036 100644 --- a/src/plugins/intel_cpu/src/nodes/deconv.cpp +++ b/src/plugins/intel_cpu/src/nodes/deconv.cpp @@ -474,7 +474,7 @@ void Deconvolution::getSupportedDescriptors() { config.outConfs.resize(getOriginalOutputsNumber()); auto& creatorsMap = BlockedDescCreator::getCommonCreators(); - auto checkDesc = [&](LayoutType format, LayoutType weights_format) -> bool { + auto checkDesc = [&](LayoutType format, LayoutType weights_format = LayoutType::ncsp) -> bool { NodeConfig config; config.inConfs.resize(getParentEdges().size()); config.outConfs.resize(getOriginalOutputsNumber()); @@ -506,7 +506,7 @@ void Deconvolution::getSupportedDescriptors() { return AclDeconvExecutorBuilder::customIsSupported(deconvAttrs, srcMemoryDescs, dstMemoryDescs); }; - useACL = checkDesc(LayoutType::nspc, LayoutType::ncsp) || checkDesc(LayoutType::ncsp, LayoutType::ncsp); + useACL = checkDesc(LayoutType::nspc) || checkDesc(LayoutType::ncsp); if (useACL) return; #endif @@ -1224,7 +1224,7 @@ void Deconvolution::initSupportedPrimitiveDescriptors() { initPaddingR(tmpInShape, tmpOutShape); auto& creatorsMap = BlockedDescCreator::getCommonCreators(); - auto pushDesc = [&](LayoutType format, LayoutType weights_format) { + auto pushDesc = [&](LayoutType format, LayoutType weights_format = LayoutType::ncsp) { NodeConfig config; config.inConfs.resize(getParentEdges().size()); config.outConfs.resize(getOriginalOutputsNumber()); @@ -1260,8 +1260,8 @@ void Deconvolution::initSupportedPrimitiveDescriptors() { supportedPrimitiveDescriptors.emplace_back(config, impl_desc_type::gemm_acl, factory); }; - pushDesc(LayoutType::nspc, LayoutType::ncsp); - pushDesc(LayoutType::ncsp, LayoutType::ncsp); + pushDesc(LayoutType::nspc); + pushDesc(LayoutType::ncsp); }