Home
last modified time | relevance | path

Searched refs:SubgraphView (Results 1 – 25 of 37) sorted by relevance

12

/external/armnn/src/armnn/
DSubgraphView.cpp45 SubgraphView::SubgraphView(Graph& graph) in SubgraphView() function in armnn::SubgraphView
57 SubgraphView::SubgraphView(InputSlots&& inputs, OutputSlots&& outputs, Layers&& layers) in SubgraphView() function in armnn::SubgraphView
71 SubgraphView::SubgraphView(SubgraphView::IConnectableLayers&& layers, in SubgraphView() function in armnn::SubgraphView
72 SubgraphView::IInputSlots&& inputs, in SubgraphView()
73 SubgraphView::IOutputSlots&& outputs) in SubgraphView()
107 SubgraphView::SubgraphView(SubgraphView::IConnectableLayers&& layers, in SubgraphView() function in armnn::SubgraphView
108 SubgraphView::IInputSlots&& inputs, in SubgraphView()
109 SubgraphView::IOutputSlots&& outputs, in SubgraphView()
144 SubgraphView::SubgraphView(const SubgraphView& subgraph) in SubgraphView() function in armnn::SubgraphView
158 SubgraphView::SubgraphView(SubgraphView&& subgraph) in SubgraphView() function in armnn::SubgraphView
[all …]
DSubgraphViewSelector.cpp196 SubgraphView::IInputSlots& inputSlots) in CollectNonSelectedInputs()
223 SubgraphView::IOutputSlots& outputSlots) in CollectNonSelectedOutputSlots()
261 SubgraphView subgraph(graph); in SelectSubgraphs()
389 SubgraphViewSelector::SelectSubgraphs(SubgraphView& subgraph, const LayerSelectorFunction& selector) in SelectSubgraphs()
394 const SubgraphView::IConnectableLayers& subgraphLayers = subgraph.GetIConnectableLayers(); in SelectSubgraphs()
408 const SubgraphView::IInputSlots& subgraphInputSlots = subgraph.GetIInputSlots(); in SelectSubgraphs()
472 SubgraphView::IInputSlots inputs; in SelectSubgraphs()
473 SubgraphView::IOutputSlots outputs; in SelectSubgraphs()
474 SubgraphView::IConnectableLayers layers; in SelectSubgraphs()
519 result.emplace_back(std::make_unique<SubgraphView>(std::move(layers), in SelectSubgraphs()
[all …]
DGraph.cpp435 void Graph::SubstituteSubgraph(SubgraphView& subgraph, IConnectableLayer* substituteLayer) in SubstituteSubgraph()
441 SubgraphView substituteSubgraph(substituteLayer); in SubstituteSubgraph()
446 void Graph::SubstituteSubgraph(SubgraphView& subgraph, const SubgraphView& substituteSubgraph) in SubstituteSubgraph()
466 void Graph::ReplaceSubgraphConnections(const SubgraphView& subgraph, const SubgraphView& substitute… in ReplaceSubgraphConnections()
471 …const SubgraphView::IConnectableLayers& substituteSubgraphLayers = substituteSubgraph.GetIConnecta… in ReplaceSubgraphConnections()
480 const SubgraphView::IInputSlots& subgraphInputSlots = subgraph.GetIInputSlots(); in ReplaceSubgraphConnections()
481 const SubgraphView::IOutputSlots& subgraphOutputSlots = subgraph.GetIOutputSlots(); in ReplaceSubgraphConnections()
486 …const SubgraphView::IInputSlots& substituteSubgraphInputSlots = substituteSubgraph.GetIInputSlots(… in ReplaceSubgraphConnections()
487 …const SubgraphView::IOutputSlots& substituteSubgraphOutputSlots = substituteSubgraph.GetIOutputSlo… in ReplaceSubgraphConnections()
530 void Graph::EraseSubgraphLayers(SubgraphView &subgraph) in EraseSubgraphLayers()
DGraph.hpp28 class SubgraphView;
210 void SubstituteSubgraph(SubgraphView& subgraph, IConnectableLayer* substituteLayer);
211 void SubstituteSubgraph(SubgraphView& subgraph, const SubgraphView& substituteSubgraph);
281 …void ReplaceSubgraphConnections(const SubgraphView& subgraph, const SubgraphView& substituteSubgra…
282 void EraseSubgraphLayers(SubgraphView &subgraph);
300 friend class SubgraphView;
DSubgraphViewSelector.hpp24 using Subgraphs = std::vector<SubgraphView::SubgraphViewPtr>;
32 static Subgraphs SelectSubgraphs(SubgraphView& subgraph, const LayerSelectorFunction& selector);
/external/armnn/include/armnn/backends/
DSubgraphView.hpp31 class SubgraphView final : public std::enable_shared_from_this<SubgraphView> class
56 using SubgraphViewPtr = std::shared_ptr<SubgraphView>;
69 explicit SubgraphView(Graph& graph);
74 SubgraphView(InputSlots&& inputs, OutputSlots&& outputs, Layers&& layers);
77 SubgraphView(IConnectableLayers&& layers, IInputSlots&& inputs, IOutputSlots&& outputs);
80 SubgraphView(const SubgraphView& subgraph);
83 SubgraphView(SubgraphView&& subgraph);
86 SubgraphView(IConnectableLayer* layer);
89 SubgraphView& operator=(SubgraphView&& other);
167 SubgraphView GetWorkingCopy() const;
[all …]
DOptimizationViews.hpp29 SubgraphView m_SubstitutableSubgraph;
32 SubgraphView m_ReplacementSubgraph;
35 using Subgraphs = std::vector<SubgraphView>;
43 void AddFailedSubgraph(SubgraphView&& subgraph) in AddFailedSubgraph()
48 void AddUntouchedSubgraph(SubgraphView&& subgraph) in AddUntouchedSubgraph()
61 bool Validate(const SubgraphView& originalSubgraph) const;
DIBackendInternal.hpp142 virtual OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph) const;
144 virtual OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph,
/external/armnn/src/armnnTestUtils/
DCommonTestUtils.cpp12 SubgraphView::InputSlots CreateInputsFrom(Layer* layer, in CreateInputsFrom()
15 SubgraphView::InputSlots result; in CreateInputsFrom()
31 SubgraphView::InputSlots CreateInputsFrom(const std::vector<Layer*>& layers, in CreateInputsFrom()
34 SubgraphView::InputSlots result; in CreateInputsFrom()
52 SubgraphView::OutputSlots CreateOutputsFrom(const std::vector<Layer*>& layers) in CreateOutputsFrom()
54 SubgraphView::OutputSlots result; in CreateOutputsFrom()
65 SubgraphView::SubgraphViewPtr CreateSubgraphViewFrom(SubgraphView::InputSlots&& inputs, in CreateSubgraphViewFrom()
66 SubgraphView::OutputSlots&& outputs, in CreateSubgraphViewFrom()
67 SubgraphView::Layers&& layers) in CreateSubgraphViewFrom()
69 return std::make_unique<SubgraphView>(std::move(inputs), std::move(outputs), std::move(layers)); in CreateSubgraphViewFrom()
DMockBackend.cpp162 OptimizationViews MockBackend::OptimizeSubgraphView(const SubgraphView& subgraph) const in OptimizeSubgraphView()
168 const SubgraphView::IConnectableLayers& subgraphLayers = subgraph.GetIConnectableLayers(); in OptimizeSubgraphView()
171 SubgraphView::IConnectableLayers supportedLayers; in OptimizeSubgraphView()
172 SubgraphView::IConnectableLayers unsupportedLayers; in OptimizeSubgraphView()
173 SubgraphView::IConnectableLayers untouchedLayers; in OptimizeSubgraphView()
214 SubgraphView mutableSubgraph(subgraph); in OptimizeSubgraphView()
221 [&optimizationViews](const SubgraphView::SubgraphViewPtr& supportedSubgraph) in OptimizeSubgraphView()
236 SubgraphView substitutionSubgraph(*supportedSubgraph); in OptimizeSubgraphView()
237 SubgraphView replacementSubgraph(preCompiledLayer); in OptimizeSubgraphView()
255 SubgraphView mutableSubgraph(subgraph); in OptimizeSubgraphView()
[all …]
DCommonTestUtils.hpp73 armnn::SubgraphView::InputSlots CreateInputsFrom(armnn::Layer* layer,
76 armnn::SubgraphView::InputSlots CreateInputsFrom(const std::vector<armnn::Layer*>& layers,
79 armnn::SubgraphView::OutputSlots CreateOutputsFrom(const std::vector<armnn::Layer*>& layers);
81 armnn::SubgraphView::SubgraphViewPtr CreateSubgraphViewFrom(armnn::SubgraphView::InputSlots&& input…
82 … armnn::SubgraphView::OutputSlots&& outputs,
83 armnn::SubgraphView::Layers&& layers);
/external/armnn/src/backends/backendsCommon/test/
DOptimizationViewsTests.cpp81 SubgraphView::SubgraphViewPtr failedSubgraph =
86 SubgraphView::SubgraphViewPtr untouchedSubgraph =
91 SubgraphView::SubgraphViewPtr substitutableSubgraph =
101 SubgraphView::SubgraphViewPtr substitutionSubgraph =
109 view.AddFailedSubgraph(SubgraphView(*failedSubgraph));
110 view.AddUntouchedSubgraph(SubgraphView(*untouchedSubgraph));
112 SubgraphView::SubgraphViewPtr baseSubgraph =
119 SubgraphView::SubgraphViewPtr originalSubgraph =
154SubgraphView::SubgraphViewPtr failedSubgraph = CreateSubgraphViewFrom(CreateInputsFrom(convLayer1),
158SubgraphView::SubgraphViewPtr untouchedSubgraph = CreateSubgraphViewFrom(CreateInputsFrom(convLaye…
[all …]
DOptimizeSubgraphViewTests.cpp152 const SubgraphView::IInputSlots& expectedSubstitutableInputSlots, in CheckSubstitution()
153 const SubgraphView::IOutputSlots& expectedSubstitutableOutputSlots, in CheckSubstitution()
154 const SubgraphView::IConnectableLayers& expectedSubstitutableLayers) in CheckSubstitution()
156 const SubgraphView& substitutableSubgraph = substitution.m_SubstitutableSubgraph; in CheckSubstitution()
157 …const SubgraphView::IInputSlots& substitutableSubgraphInputSlots = substitutableSubgraph.GetIInput… in CheckSubstitution()
158 …const SubgraphView::IOutputSlots& substitutableSubgraphOutputSlots = substitutableSubgraph.GetIOut… in CheckSubstitution()
159 const SubgraphView::IConnectableLayers& substitutableSubgraphLayers = in CheckSubstitution()
162 …const SubgraphView& replacementSubgraph = substitution.m_ReplacementSubgr… in CheckSubstitution()
163 …const SubgraphView::IInputSlots& replacementSubgraphInputSlots = replacementSubgraph.GetIInputSl… in CheckSubstitution()
164 …const SubgraphView::IOutputSlots& replacementSubgraphOutputSlots = replacementSubgraph.GetIOutputS… in CheckSubstitution()
[all …]
/external/armnn/src/backends/backendsCommon/
DSubgraphUtils.hpp20 SubgraphView::IInputSlots CreateIInputsFrom(const std::vector<armnn::IConnectableLayer*>& layers) in CreateIInputsFrom()
22 SubgraphView::IInputSlots result; in CreateIInputsFrom()
37 SubgraphView::IOutputSlots CreateIOutputsFrom(const std::vector<armnn::IConnectableLayer*>& layers) in CreateIOutputsFrom()
39 SubgraphView::IOutputSlots result; in CreateIOutputsFrom()
58 SubgraphView subgraphView({layer}, in ReportUntouchedLayers()
71 SubgraphView substitutionSubgraph({padLayer, baseLayer}, in FoldPadLayer()
74 SubgraphView replacementSubgraph(replacementLayer); in FoldPadLayer()
DOptimizationViews.cpp11 bool OptimizationViews::Validate(const armnn::SubgraphView& originalSubgraph) const in Validate()
20 SubgraphView::IConnectableLayers originalLayers = originalSubgraph.GetIConnectableLayers(); in Validate()
24 SubgraphView::IConnectableLayers countedLayers; in Validate()
61 const SubgraphView& replacement = substitution.m_ReplacementSubgraph; in Validate()
62 const SubgraphView& old = substitution.m_SubstitutableSubgraph; in Validate()
DIBackendInternal.cpp106 OptimizationViews IBackendInternal::OptimizeSubgraphView(const SubgraphView& subgraph) const in OptimizeSubgraphView()
109 result.AddUntouchedSubgraph(SubgraphView(subgraph)); in OptimizeSubgraphView()
114 OptimizationViews IBackendInternal::OptimizeSubgraphView(const SubgraphView& subgraph, in OptimizeSubgraphView()
/external/armnn/src/armnn/test/
DSubgraphViewTests.cpp28 bool AreAnySubgraphLayersPresentInGraph(const SubgraphView::IConnectableLayers &subgraphLayers, con… in AreAnySubgraphLayersPresentInGraph()
45 SubgraphView::InputSlots CreateInputsFrom(const std::vector<Layer*>& layers, in CreateInputsFrom()
48 SubgraphView::InputSlots result;
67 SubgraphView::IInputSlots CreateIInputsFrom(const std::vector<armnn::IConnectableLayer*>& layers, in CreateIInputsFrom()
70 SubgraphView::IInputSlots result;
91 SubgraphView::OutputSlots CreateOutputsFrom(const std::vector<Layer*>& layers) in CreateOutputsFrom()
93 SubgraphView::OutputSlots result; in CreateOutputsFrom()
105 SubgraphView::IOutputSlots CreateIOutputsFrom(const std::vector<armnn::IConnectableLayer*>& layers) in CreateIOutputsFrom()
107 SubgraphView::IOutputSlots result; in CreateIOutputsFrom()
122 SubgraphView::SubgraphViewPtr CreateSubgraphViewFrom(SubgraphView::InputSlots&& inputs, in CreateSubgraphViewFrom()
[all …]
/external/armnn/src/backends/aclCommon/
DArmComputeSubgraphUtils.hpp63 SubgraphView substitutionSubgraph({baseLayer, activationLayer}, in FuseLayer()
66 SubgraphView replacementSubgraph(replacementLayer); in FuseLayer()
200 SubgraphView substitutionSubgraph({baseLayer, activationLayer}, in FuseBatchNormalizationLayer()
203 SubgraphView replacementSubgraph(replacementLayer); in FuseBatchNormalizationLayer()
351 SubgraphView substitutionSubgraph(baseLayer); in ReplaceLayers()
352 SubgraphView replacementSubgraph(std::move(replacementLayers), in ReplaceLayers()
/external/armnn/src/backends/backendsCommon/test/mockBackend/
DMockImportBackend.cpp88 OptimizationViews MockImportBackend::OptimizeSubgraphView(const SubgraphView& subgraph) const in OptimizeSubgraphView()
92 optimizationViews.AddUntouchedSubgraph(SubgraphView(subgraph)); in OptimizeSubgraphView()
DMockImportBackend.hpp46 OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph) const override;
/external/armnn/src/dynamic/sample/
DSampleDynamicBackend.cpp82 … armnn::OptimizationViews OptimizeSubgraphView(const armnn::SubgraphView& subgraph) const override in OptimizeSubgraphView()
86 optimizationViews.AddUntouchedSubgraph(armnn::SubgraphView(subgraph)); in OptimizeSubgraphView()
/external/armnn/src/backends/reference/
DRefBackend.cpp74 OptimizationViews RefBackend::OptimizeSubgraphView(const SubgraphView& subgraph, in OptimizeSubgraphView()
123 optimizationViews.AddUntouchedSubgraph(SubgraphView(subgraph)); in OptimizeSubgraphView()
DRefBackend.hpp53 OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph,
/external/armnn/src/backends/tosaReference/
DTosaRefBackend.cpp82 OptimizationViews TosaRefBackend::OptimizeSubgraphView(const SubgraphView& subgraph, in OptimizeSubgraphView()
160 optimizationViews.AddSubstitution({ std::move(subgraph), SubgraphView(preCompiledLayer) }); in OptimizeSubgraphView()
DTosaRefBackend.hpp40 OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph,

12