提交 f95e9857 编写于 作者: W willzhang4a58

fix warning in clang

上级 c0c1f3de
......@@ -21,8 +21,8 @@ class MdSaveCompTaskNode final : public CompTaskNode {
}
private:
void BuildExecAndEnrollLbn2Regsts(TaskGraph* gph);
void InferShapeOfBlobsInProducedRegsts(TaskGraph* gph);
void BuildExecAndEnrollLbn2Regsts(TaskGraph* gph) override;
void InferShapeOfBlobsInProducedRegsts(TaskGraph* gph) override;
bool IsMeaningLess() const override {
return !GetSubscribedRegstDesc("model");
}
......
......@@ -12,8 +12,8 @@ class MdUpdtCompTaskNode final : public CompTaskNode {
~MdUpdtCompTaskNode() = default;
private:
void BuildExecAndEnrollLbn2Regsts(TaskGraph* gph);
void InferShapeOfBlobsInProducedRegsts(TaskGraph* gph);
void BuildExecAndEnrollLbn2Regsts(TaskGraph* gph) override;
void InferShapeOfBlobsInProducedRegsts(TaskGraph* gph) override;
TaskType task_type() const override {
return kMdUpdtCompTask;
}
......
......@@ -28,17 +28,17 @@ ThreadMgr::ThreadMgr() {
threads_.reserve(dev_num_per_machine + 3);
for (uint64_t dev_phy_id = 0; dev_phy_id < dev_num_per_machine; ++dev_phy_id){
if (device_type == kGPU) {
threads_.push_back(std::move(of_make_unique<GpuThread>(dev_phy_id)));
threads_.push_back(of_make_unique<GpuThread>(dev_phy_id));
} else {
threads_.push_back(std::move(of_make_unique<CpuThread>()));
threads_.push_back(of_make_unique<CpuThread>());
}
}
// cpu thread - for persistence
threads_.push_back(std::move(of_make_unique<CpuThread>()));
threads_.push_back(of_make_unique<CpuThread>());
// cpu thread - for boxing
threads_.push_back(std::move(of_make_unique<CpuThread>()));
threads_.push_back(of_make_unique<CpuThread>());
// cpu thread - for commnet
threads_.push_back(std::move(of_make_unique<CpuThread>()));
threads_.push_back(of_make_unique<CpuThread>());
}
} // namespace oneflow
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册