Skip to content

Commit

Permalink
Update common_shape.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroRains authored Apr 9, 2024
1 parent 009cf48 commit 9fc3081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/phi/kernels/funcs/common_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ inline std::vector<int64_t> GetReduceDims(const DenseTensor &in,
reduce_dims.push_back(i + diff);
} else {
PADDLE_ENFORCE_EQ(
in_dims[i],
out_dims[i + diff],
in_dims[i + diff],
out_dims[i],
phi::errors::InvalidArgument(
"ReduceDims dimension mismatch. Operands could "
"not be broadcast together with the shape of in_dims = [%s] and "
Expand Down

0 comments on commit 9fc3081

Please sign in to comment.