提交 e2799a39 编写于 作者: S Shiyuan Shang-Guan

Merge branch 'dev_bert' of https://github.com/Oneflow-Inc/oneflow into dev_multi-socket


Former-commit-id: 8689609b90abed7538a728395ea9880cd5af9178
......@@ -140,6 +140,7 @@ bool NoOutRegstConsumedByBwNode(TaskNode* node) {
if (fw_node == nullptr) { return false; }
for (TaskEdge* edge : fw_node->out_edges()) {
auto* fw_consumer = dynamic_cast<NormalForwardCompTaskNode*>(edge->dst_node());
if (fw_consumer == nullptr) { return false; }
if (fw_consumer->HasBackwardCompTaskNode()) { return false; }
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册