Fix the Non_Zero childedge check. (#11963)

This commit is contained in:
Luwei Zhou 2022-06-27 10:43:38 +08:00 committed by GitHub
parent 44da3f06c4
commit 4be0c59505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ void NonZero::getSupportedDescriptors() {
return;
if (getParentEdges().size() != 1)
IE_THROW() << errorPrefix << "has incorrect number of input edges: " << getParentEdges().size();
if (getChildEdges().size() != 1)
if (!getChildEdges().size())
IE_THROW() << errorPrefix << "has incorrect number of output edges: " << getChildEdges().size();
}