From 44186d7338ff67b818eb19545c9677950d6b2bbb Mon Sep 17 00:00:00 2001 From: Xiaoda Zhang Date: Wed, 29 Apr 2020 19:47:59 +0800 Subject: [PATCH] fix some code-style warnings --- mindspore/ccsrc/parallel/step_parallel.cc | 1 - .../parallel/strategy_checkpoint/parallel_strategy_checkpoint.h | 1 - 2 files changed, 2 deletions(-) diff --git a/mindspore/ccsrc/parallel/step_parallel.cc b/mindspore/ccsrc/parallel/step_parallel.cc index 62fb96c297..a96df98e5d 100644 --- a/mindspore/ccsrc/parallel/step_parallel.cc +++ b/mindspore/ccsrc/parallel/step_parallel.cc @@ -1427,7 +1427,6 @@ void ExtractInformation(const std::vector &all_nodes) { std::string strategy_key_name = cnode->scope()->name() + std::string(CONNSYMBOL) + instance_name; bool load_strategy_from_ckpt = StrategyCheckpoint::GetInstance().LoadCheckPointOn() && stra_map.find(strategy_key_name) != stra_map.end(); - if (!StrategyFound(attrs) && !load_strategy_from_ckpt) { MS_LOG(INFO) << "ExtractInformation: the strategy of node " << node->ToString() << " prim " << prim->name() << " is empty, using batch parallel"; diff --git a/mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.h b/mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.h index 0cf6229fa3..a758a9e7bb 100644 --- a/mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.h +++ b/mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.h @@ -25,7 +25,6 @@ namespace mindspore { namespace parallel { - using StrategyMap = std::unordered_map; class StrategyCheckpoint { public: