From 69839f8a9a64e06347a17d802d0f89bd3634fcd2 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Wed, 6 Jan 2021 17:40:15 +0800 Subject: [PATCH] fix error message for distribute_fpn_proposals_op (#30116) --- paddle/fluid/operators/detection/distribute_fpn_proposals_op.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h b/paddle/fluid/operators/detection/distribute_fpn_proposals_op.h index 79498f0153..465435637c 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;