Fixed klockwork (#3119)
authorIlya Lavrenov <ilya.lavrenov@intel.com>
Mon, 16 Nov 2020 09:50:03 +0000 (12:50 +0300)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 09:50:03 +0000 (12:50 +0300)
inference-engine/src/legacy_api/include/legacy/details/ie_cnn_network_iterator.hpp
inference-engine/src/readers/ir_reader_v7/ie_layer_validators.cpp

index b22e55a..a68b454 100644 (file)
@@ -32,9 +32,9 @@ class INFERENCE_ENGINE_INTERNAL("Migrate to IR v10 and work with ngraph::Functio
 CNNNetworkIterator {
     IE_SUPPRESS_DEPRECATED_START
 
-    std::unordered_set<CNNLayer*> visited;
-    std::list<CNNLayerPtr> nextLayersToVisit;
-    InferenceEngine::CNNLayerPtr currentLayer;
+    std::unordered_set<CNNLayer*> visited {};
+    std::list<CNNLayerPtr> nextLayersToVisit {};
+    InferenceEngine::CNNLayerPtr currentLayer = nullptr;
     const ICNNNetwork* network = nullptr;
 
     void init(const ICNNNetwork* net) {
index 245e87a..58de71d 100644 (file)
@@ -2222,7 +2222,7 @@ void ScatterElementsUpdateValidator::checkShapes(const CNNLayer* layer, const ve
 
 #define REG_LAYER_VALIDATOR_FOR_TYPE(__validator, __type) _validators[#__type] = std::make_shared<__validator>(#__type)
 
-LayerValidators::LayerValidators() {
+LayerValidators::LayerValidators() : _validators() {
     REG_LAYER_VALIDATOR_FOR_TYPE(ActivationValidator, Activation);
     REG_LAYER_VALIDATOR_FOR_TYPE(ArgMaxValidator, ArgMax);
     REG_LAYER_VALIDATOR_FOR_TYPE(BatchNormalizationValidator, BatchNormalization);