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

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

上级 fcd4cf7b
...@@ -378,7 +378,7 @@ class GenerateProposalsKernel : public framework::OpKernel<T> { ...@@ -378,7 +378,7 @@ class GenerateProposalsKernel : public framework::OpKernel<T> {
for (int i = 0; i < num; i++) { for (int i = 0; i < num; i++) {
lod_data[i] = tmp_lod[i]; lod_data[i] = tmp_lod[i];
} }
rpn_rois_lod->Resize({num, 1}); rpn_rois_lod->Resize({num});
} }
rpn_rois->set_lod(lod); rpn_rois->set_lod(lod);
rpn_roi_probs->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.
先完成此消息的编辑!
想要评论请 注册