提交 0585fc6d 编写于 作者: W willzhang4a58

fix error check in model_update

上级 b66135e4
......@@ -57,7 +57,10 @@ void MdUpdtTaskGraph::InitFaker2MccoyAndParallelId2UpdtMap(
}
}
SortByParallelId(&comptasks4faker_chain);
CHECK_EQ(comptasks4faker_chain.size(), sorted_bp_comptasks4data_chain.size());
if (chain_gph()->nodes().size() == 2) {
CHECK_EQ(comptasks4faker_chain.size(),
sorted_bp_comptasks4data_chain.size());
}
for (size_t i = 0; i < comptasks4faker_chain.size(); ++i) {
EnrollFakerMccoy(comptasks4faker_chain[i],
sorted_bp_comptasks4data_chain[i]);
......
train_dlnet_conf_filepath: "/home/willzhang/oneflow/prototxt/google_net.prototxt"
resource_filepath: "/home/willzhang/oneflow/prototxt/resource.prototxt"
strategy_filepath: "/home/willzhang/oneflow/prototxt/strategy.prototxt"
train_dlnet_conf_filepath: "../prototxt/google_net.prototxt"
resource_filepath: "../prototxt/resource.prototxt"
strategy_filepath: "../prototxt/strategy.prototxt"
model_load_machine: "centos-0"
model_save_machine: "centos-0"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册