diff --git a/mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc b/mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc index cfc792843a..acbe47318e 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel.cc @@ -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(); diff --git a/mindspore/ccsrc/cxx_api/serialization.cc b/mindspore/ccsrc/cxx_api/serialization.cc index 4f3e3c7204..e5c83f8574 100644 --- a/mindspore/ccsrc/cxx_api/serialization.cc +++ b/mindspore/ccsrc/cxx_api/serialization.cc @@ -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;