Conversation
| { | ||
| ++idx; | ||
| } | ||
| } |
There was a problem hiding this comment.
Why not to remove only Initializer nodes at addConstantNodesForInitializers?
There was a problem hiding this comment.
Initializers overlap with inputs (not constant nodes). I think removing Initializers is useless because we don't use initializers in simplifySubgraphs, only inputs and nodes.
There was a problem hiding this comment.
Because we have a procedure which replaces Initializers to Constants. That means other code which is related to this procedure should be also located there.
|
@l-bat, please try to extend dkurt@08c066a considering scenario from your PR when initializers included in the inputs. This patch is something that @ashishkrshrivastava proposed once but with agnostic input nodes (might be any type): int input = addNodeToMatch("");
int data1 = addNodeToMatch("");
int data2 = addNodeToMatch("");
int data3 = addNodeToMatch("");
int data4 = addNodeToMatch(""); |
Merge with extra: opencv/opencv_extra#755
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.