1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #23703 from Abdurrahheem:ash/graph_simplifier

Added missing index for skipping subgraph simplification
This commit is contained in:
Alexander Smorkalov
2023-05-30 10:31:00 +03:00
committed by GitHub
@@ -808,7 +808,7 @@ public:
const Ptr<ImportNodeWrapper> node_to_check = net->getNode(i);
int numInp = node_to_check->getNumInputs();
for (int inp = 0; inp < numInp; ++inp) {
if (i != nodeToMatch && inpNodeName == node_to_check->getInputName(0)) {
if (i != nodeToMatch && inpNodeName == node_to_check->getInputName(inp)) {
// Another node has the same input node, so it cannot be merged.
return false;
}