| 473 | } |
| 474 | |
| 475 | void Graph::SubstituteSubgraph(SubgraphView& subgraph, IConnectableLayer* substituteLayer) |
| 476 | { |
| 477 | ARMNN_THROW_INVALIDARG_MSG_IF_FALSE(substituteLayer, "substituteLayer should not be null"); |
| 478 | |
| 479 | // Create a new sub-graph with only the given layer, using |
| 480 | // the given sub-graph as a reference of which parent graph to use |
| 481 | SubgraphView substituteSubgraph(substituteLayer); |
| 482 | |
| 483 | SubstituteSubgraph(subgraph, substituteSubgraph); |
| 484 | } |
| 485 | |
| 486 | void Graph::SubstituteSubgraph(SubgraphView& subgraph, const SubgraphView& substituteSubgraph) |
| 487 | { |