未验证 提交 69839f8a 编写于 作者: W wangguanzhong 提交者: GitHub

fix error message for distribute_fpn_proposals_op (#30116)

上级 8e1c3ddf
...@@ -84,7 +84,8 @@ class DistributeFpnProposalsOpKernel : public framework::OpKernel<T> { ...@@ -84,7 +84,8 @@ class DistributeFpnProposalsOpKernel : public framework::OpKernel<T> {
PADDLE_ENFORCE_EQ(fpn_rois->lod().size(), 1UL, PADDLE_ENFORCE_EQ(fpn_rois->lod().size(), 1UL,
platform::errors::InvalidArgument( platform::errors::InvalidArgument(
"DistributeFpnProposalsOp needs LoD " "DistributeFpnProposalsOp needs LoD "
"with one level.")); "with one level. But received level is %d",
fpn_rois->lod().size()));
} }
std::vector<size_t> fpn_rois_lod; std::vector<size_t> fpn_rois_lod;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册