Browse Source

fix the codex and bot warnings

tags/v0.2.0-alpha
Xiaoda Zhang 6 years ago
parent
commit
ec043fcd56
3 changed files with 2 additions and 3 deletions
  1. +0
    -1
      mindspore/ccsrc/parallel/device_matrix.h
  2. +0
    -1
      mindspore/ccsrc/parallel/step_parallel.cc
  3. +2
    -1
      mindspore/ccsrc/parallel/tensor_layout/redistribution_operator_infer.h

+ 0
- 1
mindspore/ccsrc/parallel/device_matrix.h View File

@@ -26,7 +26,6 @@

namespace mindspore {
namespace parallel {

using RankList = std::vector<int32_t>;
using Shape = std::vector<int32_t>;



+ 0
- 1
mindspore/ccsrc/parallel/step_parallel.cc View File

@@ -1620,7 +1620,6 @@ CNodePtr FindLossCNode(const FuncGraphPtr &func_graph) {
auto pre_cnode = pre_node->cast<CNodePtr>();
MS_EXCEPTION_IF_NULL(pre_cnode);
auto current_prim = GetValueNode<PrimitivePtr>(pre_cnode->input(0));

// return -> cast
if (current_prim->name() == CAST && pre_cnode->operator_info() == nullptr) {
pre_cnode = pre_cnode->input(1)->cast<CNodePtr>();


+ 2
- 1
mindspore/ccsrc/parallel/tensor_layout/redistribution_operator_infer.h View File

@@ -39,7 +39,8 @@ using OperatorList = std::vector<OperatorC>;
class RedistributionOperatorInfer {
public:
const int NONE = -1;
explicit RedistributionOperatorInfer(bool construct_op_flag = true) : construct_op_flag_(construct_op_flag) {}
explicit RedistributionOperatorInfer(bool construct_op_flag = true)
: construct_op_flag_(construct_op_flag), is_cost_model_(false) {}
Status Init(const TensorLayout &tensor_layout, const Map &out_tensor_map, RankList dev_list,
bool is_cost_model = false);
~RedistributionOperatorInfer() = default;


Loading…
Cancel
Save