1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <vpu/graph_transformer.hpp>
10 #include <unordered_map>
11 #include <unordered_set>
13 #include <details/caseless.hpp>
17 namespace ie = InferenceEngine;
19 class NetworkConfig final {
21 void parse(const CompilationConfig& config);
23 bool skipAllLayers() const;
24 bool skipLayerType(const std::string& layerType) const { return _noneLayers.count(layerType) != 0; }
26 bool hasManualDataScale() const { return !_dataScale.empty(); }
27 const std::unordered_map<std::string, float>& dataScale() const { return _dataScale; }
29 bool hwDisabled(const std::string& layerName) const;
32 ie::details::caseless_set<std::string> _noneLayers;
34 std::unordered_map<std::string, float> _dataScale;
36 std::unordered_set<std::string> _hwWhiteList;
37 std::unordered_set<std::string> _hwBlackList;