Skip to content

Commit

Permalink
update per review
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhu-wang committed May 4, 2021
1 parent 4425096 commit 50f4cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inference-engine/src/mkldnn_plugin/nodes/mkldnn_mvn_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ void MKLDNNMVNNode::getSupportedDescriptors() {
if (getChildEdges().empty())
IE_THROW() << errPrefix << "has incorrect number of output edges.";

const auto& numOfDims = getParentEdgeAt(0)->getDims().ndims();
SizeVector inputShape = getParentEdgeAt(0)->getDims().ToSizeVector();
const auto& numOfDims = inputShape.size();
if (numOfDims < 1 || numOfDims > 5)
IE_THROW() << errPrefix << "doesn't support input with size of dimensions: " << numOfDims;

Expand All @@ -644,7 +645,6 @@ void MKLDNNMVNNode::getSupportedDescriptors() {
epsMode_ = outsideSqrt;
}

SizeVector inputShape = getParentEdgeAt(0)->getDims().ToSizeVector();
transformTo5DCase(inputShape);
}

Expand Down

0 comments on commit 50f4cb5

Please sign in to comment.