Skip to content

Commit

Permalink
[CPU] AdaptivePooling child edges number check fix (openvinotoolkit#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Andronov authored Feb 15, 2022
1 parent fa6865d commit dc905f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/src/nodes/mkldnn_adaptive_pooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void MKLDNNAdaptivePoolingNode::getSupportedDescriptors() {

if (getParentEdges().size() != 2)
IE_THROW() << errorPrefix << "has incorrect number of input edges: " << getParentEdges().size();
if (getChildEdges().size() != (algorithm == AdaptivePoolingMax ? 2 : 1))
IE_THROW() << errorPrefix << "has incorrect number of output edges: " << getParentEdges().size();
if (getChildEdges().size() < (algorithm == AdaptivePoolingMax ? 2 : 1))
IE_THROW() << errorPrefix << "has incorrect number of output edges: " << getChildEdges().size();

auto srcRank = getInputShapeAtPort(0).getRank();
if (!one_of(spatialDimsCount, 1, 2, 3)) {
Expand Down

0 comments on commit dc905f9

Please sign in to comment.