forked from mindspore-Ecosystem/mindspore
fix executor reviewbot
This commit is contained in:
parent
3621bb2348
commit
4137904442
|
@ -74,7 +74,10 @@ class InferTensorBase {
|
|||
if (data_len == 0) {
|
||||
return true;
|
||||
}
|
||||
memcpy_s(mutable_data(), data_size(), data, data_len);
|
||||
auto ret = memcpy_s(mutable_data(), data_size(), data, data_len);
|
||||
if (ret != 0) {
|
||||
MS_LOG(EXCEPTION) << "Set data memcpy_s failed";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ class CreateCommGroupTask : public Task {
|
|||
void Run() override;
|
||||
std::string group_name_;
|
||||
std::vector<uint32_t> ranks_;
|
||||
bool result_;
|
||||
bool result_{false};
|
||||
};
|
||||
|
||||
class DestroyCommGroupTask : public Task {
|
||||
|
@ -134,7 +134,7 @@ class DestroyCommGroupTask : public Task {
|
|||
~DestroyCommGroupTask() override = default;
|
||||
void Run() override;
|
||||
std::string group_name_;
|
||||
bool result_;
|
||||
bool result_{false};
|
||||
};
|
||||
|
||||
class ExitTask : public Task {
|
||||
|
|
Loading…
Reference in New Issue