diff --git a/paddle/fluid/operators/detection_map_op.cc b/paddle/fluid/operators/detection_map_op.cc index e11dc231c2192979c68dc5fffcd6904c0c4f45de..95f1c080f39cd0998ef38f44505494d91545dd2c 100644 --- a/paddle/fluid/operators/detection_map_op.cc +++ b/paddle/fluid/operators/detection_map_op.cc @@ -68,12 +68,12 @@ class DetectionMAPOp : public framework::OperatorWithKernel { ctx->HasInput("TruePos"), platform::errors::InvalidArgument( "Input(TruePos) of DetectionMAPOp should not be null when " - "Input(TruePos) is not null.")); + "Input(PosCount) is not null.")); PADDLE_ENFORCE( ctx->HasInput("FalsePos"), platform::errors::InvalidArgument( "Input(FalsePos) of DetectionMAPOp should not be null when " - "Input(FalsePos) is not null.")); + "Input(PosCount) is not null.")); } ctx->SetOutputDim("MAP", framework::make_ddim({1}));