Skip to content

Commit

Permalink
fix problem of yolo_box
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinxin08 committed Mar 2, 2022
1 parent 95dbb89 commit d16f0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/detection/yolo_box_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class YoloBoxOp : public framework::OperatorWithKernel {
class_num));

int box_num;
if (dim_x[2] > 0 && dim_x[3] > 0 || ctx->IsRuntime()) {
if ((dim_x[2] > 0 && dim_x[3] > 0) || ctx->IsRuntime()) {
box_num = dim_x[2] * dim_x[3] * anchor_num;
} else {
box_num = -1;
Expand Down

1 comment on commit d16f0fa

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.