Skip to content

Commit

Permalink
fix erfinv infermeta
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Feb 28, 2022
1 parent 295df1d commit 144740c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/erfinv_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ DECLARE_INPLACE_OP_INFERER(ErfinvInplaceInferer, {"X", "Out"});
} // namespace paddle

DELCARE_INFER_SHAPE_FUNCTOR(erfinv, ErfinvInferShapeFunctor,
PT_INFER_META(phi::ErfinvInferMeta));
PT_INFER_META(phi::UnchangedInferMeta));

REGISTER_OPERATOR(
erfinv, paddle::operators::ErfinvOp, paddle::operators::ErfinvOpMaker,
Expand Down
6 changes: 0 additions & 6 deletions paddle/phi/infermeta/unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -829,12 +829,6 @@ void SizeInferMeta(const MetaTensor& input, MetaTensor* out) {
out->set_dims({1});
}

void ErfinvInferMeta(const MetaTensor& x, MetaTensor* out) {
out->set_dtype(x.dtype());
out->set_dims(x.dims());
out->share_lod(x);
}

void PixelShuffleInferMeta(const MetaTensor& x,
int upscale_factor,
const std::string& data_format,
Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/infermeta/unary.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ void DiagInferMeta(const MetaTensor& x,

void SizeInferMeta(const MetaTensor& input, MetaTensor* out);

void ErfinvInferMeta(const MetaTensor& x, MetaTensor* out);

void PixelShuffleInferMeta(const MetaTensor& x,
int upscale_factor,
const std::string& data_format,
Expand Down

1 comment on commit 144740c

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