Skip to content

Commit 05603c9

Browse files
authored
fix concat dimension (#25927)
Fix the condition of concat dimension judgment.
1 parent 7c111a0 commit 05603c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/concat_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline framework::DDim ComputeAndCheckShape(
5151
}
5252
} else {
5353
bool check_shape =
54-
is_runtime || (out_dims[j] > 0 && inputs_dims[i][j] > 0);
54+
is_runtime || (inputs_dims[0][j] > 0 && inputs_dims[i][j] > 0);
5555
if (check_shape) {
5656
// check all shape in run time
5757
PADDLE_ENFORCE_EQ(inputs_dims[0][j], inputs_dims[i][j],

0 commit comments

Comments
 (0)