Browse Source

!14850 clean code sc warning

From: @zhoufeng54
Reviewed-by: @xu-yfei,@kisnwang
Signed-off-by: @xu-yfei
tags/v1.2.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
7f3d76dbfa
2 changed files with 2 additions and 2 deletions
  1. +2
    -1
      mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc
  2. +0
    -1
      mindspore/ccsrc/cxx_api/serialization.cc

+ 2
- 1
mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc View File

@@ -64,7 +64,8 @@ HcclKernelFactory &HcclKernelFactory::Get() {
return _this;
}

HcclKernel::HcclKernel() : hccl_count_(0), op_type_(HCCL_REDUCE_SUM), root_id_(0), anf_node_(nullptr) {}
HcclKernel::HcclKernel()
: hccl_count_(0), op_type_(HCCL_REDUCE_SUM), root_id_(0), receive_type_(0), anf_node_(nullptr) {}

HcclKernel::~HcclKernel() {
hccl_kernel_input_shape_list_.clear();


+ 0
- 1
mindspore/ccsrc/cxx_api/serialization.cc View File

@@ -34,7 +34,6 @@ static Buffer ReadFile(const std::string &file) {
#else
real_path_ret = realpath(common::SafeCStr(file), real_path_mem);
#endif

if (real_path_ret == nullptr) {
MS_LOG(ERROR) << "File: " << file << " is not exist.";
return buffer;


Loading…
Cancel
Save