[CPU] fix one dims scale shift (#989)

This commit is contained in:
Maxim Andronov
2020-06-18 14:21:23 +03:00
committed by GitHub
parent 26ae52b461
commit fafc6a485d

View File

@@ -157,7 +157,7 @@ void MKLDNNDepthwiseNode::createDescriptor(const std::vector<InferenceEngine::Te
const std::vector<InferenceEngine::TensorDesc> &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};