Skip to content

Commit

Permalink
Merge branch 'sum' of https://github.com/zeroRains/Paddle into sum
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroRains committed Apr 9, 2024
2 parents 21157bc + 9fc3081 commit c7ffb0a
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 c7ffb0a

Please sign in to comment.