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

This commit is contained in:
Maxim Andronov 2020-06-18 14:21:07 +03:00 committed by GitHub
parent 843f81a1cc
commit 2f3d5f68cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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};