| 605 | } |
| 606 | |
| 607 | void Graph::EraseSubgraphLayers(SubgraphView &subgraph) |
| 608 | { |
| 609 | |
| 610 | for (auto iConnectableLayer : subgraph.GetIConnectableLayers()) |
| 611 | { |
| 612 | auto layer = PolymorphicDowncast<Layer*>(iConnectableLayer); |
| 613 | EraseLayer(layer); |
| 614 | } |
| 615 | subgraph.Clear(); |
| 616 | } |
| 617 | |
| 618 | /// For each ConstantLayer in Graph, ensures TensorInfo is set on all output slots. |
| 619 | /// LayerValidationException thrown if no TensorInfo is set. |
no test coverage detected