diff --git a/paddle/operators/box_coder_op.cc b/paddle/operators/box_coder_op.cc index 3836cef96d8725c892bfb63ca8abcdbcda936f02..539813d4858b8faef386047f9ef64aa232aefca1 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.");