From 6818fb1a65c52af352473be7a2077bd8229867e1 Mon Sep 17 00:00:00 2001 From: wawltor Date: Mon, 28 Sep 2020 04:01:20 +0000 Subject: [PATCH] update the code check for the detetion_map_op, test=develop --- paddle/fluid/operators/detection_map_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/detection_map_op.cc b/paddle/fluid/operators/detection_map_op.cc index e11dc231c21..95f1c080f39 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})); -- GitLab