Skip to content

Commit

Permalink
[KP] Add unittests for brelu,ceil,celu,elu,floor,hard_shrink,hard_sig…
Browse files Browse the repository at this point in the history
…moid,log1p,logsigmoid,relu6,silu,soft_relu,softsign,swish (#40448)

* solve unexecuted UT

* add 24 activation op UT

* append swish&thresholded_relu to kpfirst_list

* rm thresholded_relu
  • Loading branch information
AshburnLee authored Mar 14, 2022
1 parent 3881b6c commit f269ca3
Show file tree
Hide file tree
Showing 2 changed files with 408 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paddle/fluid/platform/device/xpu/xpu_op_kpfirst_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ XPUOpMap& get_kp_ops() {
{"hard_shrink", XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"hard_sigmoid",
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"swish", XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"thresholded_relu",
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
};

return s_xpu_kp_kernels;
Expand Down
Loading

0 comments on commit f269ca3

Please sign in to comment.