未验证 提交 c475da78 编写于 作者: J Jinhui Yuan 提交者: GitHub

fix packed blob shape check (#1095)

上级 18bda5ca
...@@ -6,7 +6,6 @@ void MdDiffAccCompTaskNode::FixPackedBlobDescOfProducedRegst() { ...@@ -6,7 +6,6 @@ void MdDiffAccCompTaskNode::FixPackedBlobDescOfProducedRegst() {
std::shared_ptr<RegstDesc> md_diff_acc_regst = GetProducedRegst("acc"); std::shared_ptr<RegstDesc> md_diff_acc_regst = GetProducedRegst("acc");
CHECK(md_diff_acc_regst->IsLocked()); CHECK(md_diff_acc_regst->IsLocked());
Shape& shape = md_diff_acc_regst->MutBlobDesc(GenPackedLbi())->mut_shape(); Shape& shape = md_diff_acc_regst->MutBlobDesc(GenPackedLbi())->mut_shape();
CHECK_EQ(1, shape.NumAxes());
shape = Shape({RoundUp(shape.elem_cnt(), parallel_ctx()->parallel_num())}); shape = Shape({RoundUp(shape.elem_cnt(), parallel_ctx()->parallel_num())});
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册