diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-04-26 13:05:17 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-04-30 09:49:43 +0100 |
commit | ff05cc50880032614675e9422ba829785f61ba14 (patch) | |
tree | be763d0049af9a8c8a9873a79f872b33ce30f0e4 /src/armnn/SubGraphSelector.hpp | |
parent | 6870b9892dfa72af630cb91ad3e6c3d868146a49 (diff) | |
download | armnn-ff05cc50880032614675e9422ba829785f61ba14.tar.gz |
IVGCVSW-2405 Rename SubGraph to SubgraphView
Change-Id: Ie50aeccf053c20c3a01a75042bbc3acd824375af
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/armnn/SubGraphSelector.hpp')
-rw-r--r-- | src/armnn/SubGraphSelector.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/armnn/SubGraphSelector.hpp b/src/armnn/SubGraphSelector.hpp deleted file mode 100644 index 371ba78f18..0000000000 --- a/src/armnn/SubGraphSelector.hpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#pragma once - -#include "SubGraph.hpp" -#include <functional> -#include <memory> - -namespace armnn -{ - -class Layer; -class Graph; - -class SubGraphSelector final -{ -public: - using SubGraphPtr = std::unique_ptr<SubGraph>; - using SubGraphs = std::vector<SubGraphPtr>; - using LayerSelectorFunction = std::function<bool(const Layer&)>; - - /// Selects subgraphs from a graph based on the selector function and the algorithm. - /// Since the SubGraphs object returns modifiable pointers to the input and output slots of the graph: - /// 1) the graph/sub-graph cannot be const - /// 2) the caller needs to make sure that the SubGraphs lifetime is shorter than the parent graph's - static SubGraphs SelectSubGraphs(Graph& graph, const LayerSelectorFunction& selector); - static SubGraphs SelectSubGraphs(SubGraph& subGraph, const LayerSelectorFunction& selector); - -private: - // this is a utility class, don't construct or copy - SubGraphSelector() = delete; - SubGraphSelector(const SubGraphSelector&) = delete; - SubGraphSelector & operator=(const SubGraphSelector&) = delete; -}; - -} // namespace armnn |