diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-05-08 10:23:08 +0100 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2019-05-08 11:52:29 +0100 |
commit | c2fe5fb3a070ce2c7daebf63d0def3d57cec09d3 (patch) | |
tree | e21332cfe689c08f9939d251a2d8fa56a9f81e1e /src/armnn/SubgraphView.hpp | |
parent | 59f32f96c0fc5c451e0fdbbfc24b072b07dc226b (diff) | |
download | armnn-c2fe5fb3a070ce2c7daebf63d0def3d57cec09d3.tar.gz |
IVGCVSW-3031 Finer grained backend optimization API
Change-Id: I9b93bc81b97f3d89fa046ba001854f732040e63a
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/armnn/SubgraphView.hpp')
-rw-r--r-- | src/armnn/SubgraphView.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/armnn/SubgraphView.hpp b/src/armnn/SubgraphView.hpp index d4d92bbf6c..d86f1c1c93 100644 --- a/src/armnn/SubgraphView.hpp +++ b/src/armnn/SubgraphView.hpp @@ -31,7 +31,7 @@ public: using ConstIterator = Layers::const_iterator; /// Constructs a sub-graph from the entire given graph. - SubgraphView(Graph& graph); + explicit SubgraphView(Graph& graph); /// Constructs a sub-graph with the given arguments. SubgraphView(InputSlots&& inputs, OutputSlots&& outputs, Layers&& layers); @@ -45,6 +45,9 @@ public: /// Constructs a sub-graph with only the given layer. SubgraphView(IConnectableLayer* layer); + /// Move-assignment operator. + SubgraphView& operator=(SubgraphView&& other); + const InputSlots& GetInputSlots() const; const OutputSlots& GetOutputSlots() const; const Layers& GetLayers() const; @@ -67,6 +70,8 @@ public: ConstIterator cbegin() const; ConstIterator cend() const; + void Clear(); + private: void CheckSubgraph(); |