diff --git a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp index bcacc0ae811..a391eb91511 100644 --- a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp +++ b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp @@ -112,7 +112,6 @@ void MKLDNNDetectionOutputNode::prepareParams() { << priorsNum * locNumForClasses * 4 << " vs " << idLocDims[1] << ")"; - const auto& idConfDims = getParentEdgeAt(ID_CONF)->getMemory().GetShape().getStaticDims(); if (priorsNum * classesNum != static_cast(idConfDims.back())) IE_THROW() << errorPrefix << "has incorrect number of priors, which must match number of confidence predictions.";