Skip to content

Commit

Permalink
[Phi] set where_index out data type
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolao committed Mar 10, 2022
1 parent 83e2e1b commit 6fd2b1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddle/phi/infermeta/unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,7 @@ void WhereIndexInferMeta(const MetaTensor& condition, MetaTensor* out) {
phi::errors::InvalidArgument(
"Input(Condition) should have number of dimension at least 1"));
out->set_dims(phi::make_ddim({-1, rank}));
out->set_dtype(DataType::INT64);
}

} // namespace phi
Expand Down

1 comment on commit 6fd2b1d

@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.