Skip to content

Commit

Permalink
delete maybe unused code in paddle\phi\infermeta\sparse\unary.h (#46844)
Browse files Browse the repository at this point in the history
  • Loading branch information
OccupyMars2025 authored and zhwesky2010 committed Oct 17, 2022
1 parent 507cf31 commit 9d077dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
10 changes: 0 additions & 10 deletions paddle/phi/api/yaml/sparse_ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,16 +470,6 @@
layout : x
backward : transpose_grad

- op : sync_batch_norm
args : (Tensor x, Tensor scale, Tensor bias, Tensor mean, Tensor variance, float momentum, float epsilon, str data_layout, bool is_test, bool use_global_stats, bool trainable_statistics, bool fuse_with_relu)
output : Tensor(out), Tensor(mean_out), Tensor(variance_out), Tensor(saved_mean), Tensor(saved_variance), Tensor(reserve_space)
infer_meta :
func : BatchNormInferMeta
kernel :
func : sync_batch_norm_coo{sparse_coo, dense, dense, dense, dense -> sparse_coo, dense, dense, dense, dense, dense}
data_type : x
backward : sync_batch_norm_grad

- op : reshape
args : (Tensor x, IntArray shape)
output : Tensor(out)
Expand Down
7 changes: 0 additions & 7 deletions paddle/phi/infermeta/sparse/unary.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,5 @@ void IndicesInferMeta(const MetaTensor& x, MetaTensor* out);

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

void TransposeInferMeta(const MetaTensor& x,
const std::vector<int>& axis,
MetaTensor* out);

void TransposeGradInferMeta(const MetaTensor& x,
const std::vector<int>& axis,
MetaTensor* out);
} // namespace sparse
} // namespace phi

0 comments on commit 9d077dd

Please sign in to comment.