Skip to content

Commit ed3ba51

Browse files
lubynetsvkucera
andauthored
return in case of failed size equality check
Co-authored-by: Vít Kučera <26327373+vkucera@users.noreply.github.com>
1 parent 3d51c8f commit ed3ba51

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tools/ML/MlResponse.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class MlResponse
157157
const int numInputNodes = mModels[counterModel].getNumInputNodes();
158158
if (numInputNodes != numCachedIndices) {
159159
LOG(fatal) << "Number of input nodes in the model " << path << " is different from the number of input features indices (" << numInputNodes << " vs " << numCachedIndices << ")";
160+
return;
160161
}
161162
++counterModel;
162163
}

0 commit comments

Comments
 (0)