oneDNN
oneDNN copied to clipboard
graph: utils: pm: correctly handle empty optional subgraph and multi-consumer one
Description
During pattern matching, we found a bug that occurs when two optional subgraphs are connected: if the first one is empty and the second one's input has multi-consumers, it leads to incorrect behavior. This PR is intended to fix that bug.
Fixes MFDNN-13660
make test set test_scope=NIGHTLY disable benchdnn_all enable benchdnn_graph
make test set test_scope=NIGHTLY disable benchdnn_all enable benchdnn_graph
make test set test_scope=NIGHTLY disable benchdnn_all enable benchdnn_graph