From 7d8d9db9ba800833bd5bda76366722b3d37542e2 Mon Sep 17 00:00:00 2001 From: gaoyuan Date: Fri, 2 Feb 2018 13:56:38 +0800 Subject: [PATCH] Update according to the code review --- paddle/operators/box_coder_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/box_coder_op.cc b/paddle/operators/box_coder_op.cc index 3836cef96d..539813d485 100644 --- a/paddle/operators/box_coder_op.cc +++ b/paddle/operators/box_coder_op.cc @@ -24,7 +24,7 @@ class BoxCoderOp : public framework::OperatorWithKernel { "Input(PriorBox) of BoxCoderOp should not be null."); PADDLE_ENFORCE(ctx->HasInput("PriorBoxVar"), "Input(PriorBoxVar) of BoxCoderOp should not be null."); - PADDLE_ENFORCE(ctx->HasInput("PriorBox"), + PADDLE_ENFORCE(ctx->HasInput("TargetBox"), "Input(TargetBox) of BoxCoderOp should not be null."); PADDLE_ENFORCE(ctx->HasOutput("OutputBox"), "Output(OutputBox) of BoxCoderOp should not be null."); -- GitLab