1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
12 #include <unordered_set>
16 namespace InferenceEngine {
19 using LayersSet = std::unordered_set<CNNLayerPtr>;
21 /// Split network on subgraphs based on layer affinity
23 /// @param network - source network
24 /// @param checkers - list of supported plugins
26 /// @return list of subgraphs
27 std::vector<LayersSet>
28 splitGraph(ICNNNetwork& network,
29 const std::vector<std::string>& plugins);
31 /// Sort sugraphs topologically, behaviour is undefined if there are circular
32 /// refences between subgraps
34 /// @param subgraphs - list of subgraphs
36 sortSubgraphs(std::vector<LayersSet>& subgraphs);
38 } // namespace InferenceEngine