fix executor reviewbot

This commit is contained in:
kswang 2020-09-21 09:34:54 +08:00
parent 3621bb2348
commit 4137904442
2 changed files with 6 additions and 3 deletions

View File

@ -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;
}

View File

@ -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 {