Update according to the code review

emailweixu-patch-1
gaoyuan 7 years ago
parent 251c2fd50a
commit 7d8d9db9ba

@ -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.");

Loading…
Cancel
Save