MCPcopy Create free account
hub / github.com/ARM-software/armnn / EraseSubgraphLayers

Method EraseSubgraphLayers

src/armnn/Graph.cpp:607–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void 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.

Callers 1

SubstituteSubgraphMethod · 0.80

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected