diff --git a/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h b/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h index 79498f01536d2fb2616921a2ef1ffa04f13fae64..465435637cff659082570f1ef9fcf1cb91983321 100644 --- a/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h +++ b/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h @@ -84,7 +84,8 @@ class DistributeFpnProposalsOpKernel : public framework::OpKernel { PADDLE_ENFORCE_EQ(fpn_rois->lod().size(), 1UL, platform::errors::InvalidArgument( "DistributeFpnProposalsOp needs LoD " - "with one level.")); + "with one level. But received level is %d", + fpn_rois->lod().size())); } std::vector fpn_rois_lod;