Skip to content

Commit

Permalink
Revert "【Hackathon 5th No.25】add gammaln api (PaddlePaddle#59311)"
Browse files Browse the repository at this point in the history
This reverts commit beba862.
  • Loading branch information
xuxinyi389 authored Dec 28, 2023
1 parent c1d7860 commit e99a4ad
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 538 deletions.
10 changes: 0 additions & 10 deletions paddle/phi/api/yaml/backward.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -922,16 +922,6 @@
kernel :
func : frame_grad

- backward_op : gammaln_grad
forward : gammaln(Tensor x) -> Tensor(out)
args : (Tensor x, Tensor out_grad)
output : Tensor(x_grad)
infer_meta :
func : UnchangedInferMeta
param: [x]
kernel :
func : gammaln_grad

- backward_op : gather_grad
forward : gather(Tensor x, Tensor index, Scalar axis=0) -> Tensor(out)
args : (Tensor x, Tensor index, Tensor out_grad, Scalar axis=0)
Expand Down
10 changes: 0 additions & 10 deletions paddle/phi/api/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,16 +1042,6 @@
data_type : dtype
backend : place

- op : gammaln
args : (Tensor x)
output : Tensor(out)
infer_meta :
func : UnchangedInferMeta
kernel :
func : gammaln
inplace: (x -> out)
backward : gammaln_grad

- op : gather
args : (Tensor x, Tensor index, Scalar axis=0)
output : Tensor(out)
Expand Down
22 changes: 0 additions & 22 deletions paddle/phi/kernels/cpu/gammaln_grad_kernel.cc

This file was deleted.

22 changes: 0 additions & 22 deletions paddle/phi/kernels/cpu/gammaln_kernel.cc

This file was deleted.

27 changes: 0 additions & 27 deletions paddle/phi/kernels/gammaln_grad_kernel.h

This file was deleted.

26 changes: 0 additions & 26 deletions paddle/phi/kernels/gammaln_kernel.h

This file was deleted.

30 changes: 0 additions & 30 deletions paddle/phi/kernels/gpu/gammaln_grad_kernel.cu

This file was deleted.

29 changes: 0 additions & 29 deletions paddle/phi/kernels/gpu/gammaln_kernel.cu

This file was deleted.

92 changes: 0 additions & 92 deletions paddle/phi/kernels/impl/gammaln_grad_kernel_impl.h

This file was deleted.

49 changes: 0 additions & 49 deletions paddle/phi/kernels/impl/gammaln_kernel_impl.h

This file was deleted.

4 changes: 0 additions & 4 deletions python/paddle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,6 @@
frac,
frac_,
frexp,
gammaln,
gammaln_,
gcd,
gcd_,
heaviside,
Expand Down Expand Up @@ -775,8 +773,6 @@
'square_',
'divide',
'divide_',
'gammaln',
'gammaln_',
'ceil',
'atan',
'atan_',
Expand Down
4 changes: 0 additions & 4 deletions python/paddle/tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@
frac,
frac_,
frexp,
gammaln,
gammaln_,
gcd,
gcd_,
heaviside,
Expand Down Expand Up @@ -670,8 +668,6 @@
'real',
'imag',
'is_floating_point',
'gammaln',
'gammaln_',
'digamma',
'digamma_',
'diagonal',
Expand Down
Loading

0 comments on commit e99a4ad

Please sign in to comment.