未验证 提交 c2e07258 编写于 作者: F FDInSky 提交者: GitHub

test=develop fix generate_proposals's error (#25227)

上级 36abeff4
......@@ -378,7 +378,7 @@ class GenerateProposalsKernel : public framework::OpKernel<T> {
for (int i = 0; i < num; i++) {
lod_data[i] = tmp_lod[i];
}
rpn_rois_lod->Resize({num, 1});
rpn_rois_lod->Resize({num});
}
rpn_rois->set_lod(lod);
rpn_roi_probs->set_lod(lod);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册