提交 07727979 编写于 作者: J Jinhui Yuan 提交者: GitHub

disable ctrl edge for MdUpdt task in prediction (#1006)



Former-commit-id: b2d088d4
上级 7a95765e
......@@ -141,7 +141,11 @@ int64_t TaskNode::MemZoneId121() const {
}
void TaskNode::BuildCtrlRegstDescIfNeed(TaskNode* dst_node) {
if (IsMeaningLess() || dst_node->IsMeaningLess()) return;
if (IsMeaningLess() || dst_node->IsMeaningLess()) { return; }
if (!Global<JobDesc>::Get()->IsTrain() && GetTaskType() == kNormalMdUpdt
&& dst_node->GetTaskType() == kNormalMdUpdt) {
return;
}
const auto& dst_ancestors = dst_node->ancestors();
if (dst_ancestors.find(this) != dst_ancestors.end()) return;
RegstDescTypeProto regst_desc_type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册