mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
added index that check all inputs of nodes that
match
This commit is contained in:
parent
02397ef851
commit
ecd2e8ff47
@ -808,7 +808,7 @@ public:
|
|||||||
const Ptr<ImportNodeWrapper> node_to_check = net->getNode(i);
|
const Ptr<ImportNodeWrapper> node_to_check = net->getNode(i);
|
||||||
int numInp = node_to_check->getNumInputs();
|
int numInp = node_to_check->getNumInputs();
|
||||||
for (int inp = 0; inp < numInp; ++inp) {
|
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.
|
// Another node has the same input node, so it cannot be merged.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user