Skip to content

Commit

Permalink
support auto generate for nonzero (#51600)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedContritio authored Mar 15, 2023
1 parent f0db1f7 commit 3734e89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 93 deletions.
58 changes: 0 additions & 58 deletions paddle/fluid/operators/where_index_op.cc

This file was deleted.

8 changes: 0 additions & 8 deletions paddle/phi/api/yaml/legacy_ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1208,14 +1208,6 @@
func : nms
data_type : x

- op : nonzero
args : (Tensor condition)
output : Tensor(out)
infer_meta :
func : NonZeroInferMeta
kernel :
func : nonzero

- op : norm
args : (Tensor x, int axis, float epsilon, bool is_test)
output : Tensor(out), Tensor(norm)
Expand Down
9 changes: 9 additions & 0 deletions paddle/phi/api/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,15 @@
optional : weight
backward : nll_loss_grad

- op : nonzero
args : (Tensor condition)
output : Tensor(out)
infer_meta :
func : NonZeroInferMeta
kernel :
func : nonzero
data_type: condition

- op : npu_identity
args : (Tensor x, int format = -1)
output : Tensor
Expand Down
27 changes: 0 additions & 27 deletions paddle/phi/ops/compat/where_index_sig.cc

This file was deleted.

0 comments on commit 3734e89

Please sign in to comment.