From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_subgraph_view_selector_8hpp_source.xhtml | 122 ++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 20.02/_subgraph_view_selector_8hpp_source.xhtml (limited to '20.02/_subgraph_view_selector_8hpp_source.xhtml') diff --git a/20.02/_subgraph_view_selector_8hpp_source.xhtml b/20.02/_subgraph_view_selector_8hpp_source.xhtml new file mode 100644 index 0000000000..6901b031d8 --- /dev/null +++ b/20.02/_subgraph_view_selector_8hpp_source.xhtml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/SubgraphViewSelector.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
SubgraphViewSelector.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include "SubgraphView.hpp"
8 #include <functional>
9 #include <memory>
10 
11 namespace armnn
12 {
13 
14 class Layer;
15 class Graph;
16 
17 /// Algorithm that splits a Graph into Subgraphs based on a filtering of layers (e.g. which layers are appropriate for
18 /// a certain backend). The resulting subgraphs are guaranteed to be form a DAG (i.e. there are no dependency loops).
19 ///
20 /// The algorithm aims to produce as few subgraphs as possible.
22 {
23 public:
24  using SubgraphViewPtr = std::unique_ptr<SubgraphView>;
25  using Subgraphs = std::vector<SubgraphViewPtr>;
26  using LayerSelectorFunction = std::function<bool(const Layer&)>;
27 
28  /// Selects subgraphs from a graph based on the selector function and the algorithm.
29  /// Since the Subgraphs object returns modifiable pointers to the input and output slots of the graph:
30  /// 1) the graph/sub-graph cannot be const
31  /// 2) the caller needs to make sure that the Subgraphs lifetime is shorter than the parent graph's
32  static Subgraphs SelectSubgraphs(Graph& graph, const LayerSelectorFunction& selector);
33  static Subgraphs SelectSubgraphs(SubgraphView& subgraph, const LayerSelectorFunction& selector);
34 
35 private:
36  // this is a utility class, don't construct or copy
37  SubgraphViewSelector() = delete;
39  SubgraphViewSelector & operator=(const SubgraphViewSelector&) = delete;
40 };
41 
42 } // namespace armnn
std::function< bool(const Layer &)> LayerSelectorFunction
+ +
Copyright (c) 2020 ARM Limited.
+
The SubgraphView class represents a subgraph of a Graph.
+
Algorithm that splits a Graph into Subgraphs based on a filtering of layers (e.g. ...
+
std::vector< SubgraphViewPtr > Subgraphs
+ +
std::unique_ptr< SubgraphView > SubgraphViewPtr
+
static Subgraphs SelectSubgraphs(Graph &graph, const LayerSelectorFunction &selector)
Selects subgraphs from a graph based on the selector function and the algorithm.
+
+
+ + + + -- cgit v1.2.1