From 2f3d5f68cd0033f7cbf788fd223f576d63270d97 Mon Sep 17 00:00:00 2001 From: Maxim Andronov Date: Thu, 18 Jun 2020 14:21:07 +0300 Subject: [PATCH] [CPU] fix one dims scale shift (#983) --- .../src/mkldnn_plugin/nodes/mkldnn_depthwise_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_depthwise_node.cpp b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_depthwise_node.cpp index e3d31778ea5..356ec72c50d 100644 --- a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_depthwise_node.cpp +++ b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_depthwise_node.cpp @@ -157,7 +157,7 @@ void MKLDNNDepthwiseNode::createDescriptor(const std::vector &outputDesc) { MKLDNNMemoryDesc in_candidate(inputDesc[0]); MKLDNNMemoryDesc out_candidate(inputDesc[0]); - MKLDNNDims weightDims({in_candidate.getDims()[1]}); + MKLDNNDims weightDims({in_candidate.getDims().ndims() == 1 ? in_candidate.getDims()[0] : in_candidate.getDims()[1]}); MKLDNNMemoryDesc wgh_candidate{weightDims, in_candidate.getDataType(), memory::x};