fix concat dimension (#25606)

Fix the condition of concat dimension judgment.
fix_copy_if_different
GaoWei8 5 years ago committed by GitHub
parent 6452fd425e
commit 6e86fd3750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ static inline framework::DDim ComputeAndCheckShape(
} }
} else { } else {
bool check_shape = bool check_shape =
is_runtime || (out_dims[j] > 0 && inputs_dims[i][j] > 0); is_runtime || (inputs_dims[0][j] > 0 && inputs_dims[i][j] > 0);
if (check_shape) { if (check_shape) {
// check all shape in run time // check all shape in run time
PADDLE_ENFORCE_EQ(inputs_dims[0][j], inputs_dims[i][j], PADDLE_ENFORCE_EQ(inputs_dims[0][j], inputs_dims[i][j],

Loading…
Cancel
Save