Skip to content

Commit

Permalink
[PHI] Migrate elementwise_(add/mul) kernels (#48625)
Browse files Browse the repository at this point in the history
* remove fluid code

* init

* typo

* fix merge conflicts
  • Loading branch information
Silv3S authored Dec 6, 2022
1 parent 8de336f commit 7575d37
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 495 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PD_DECLARE_KERNEL(batch_norm, OneDNN, ONEDNN);
USE_OP_ITSELF(conv2d_transpose);
PD_DECLARE_KERNEL(conv2d_transpose, OneDNN, ONEDNN);
USE_OP_ITSELF(elementwise_add);
USE_OP_DEVICE_KERNEL(elementwise_add, MKLDNN);
PD_DECLARE_KERNEL(add_raw, OneDNN, ONEDNN);
USE_OP_ITSELF(gelu);
PD_DECLARE_KERNEL(gelu, OneDNN, ONEDNN);
PD_DECLARE_ARG_MAPPING_FN(gelu);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
USE_OP_ITSELF(softmax);
PD_DECLARE_KERNEL(softmax, OneDNN, ONEDNN);
USE_OP_ITSELF(elementwise_add);
USE_OP_DEVICE_KERNEL(elementwise_add, MKLDNN);
PD_DECLARE_KERNEL(add_raw, OneDNN, ONEDNN);
USE_OP_ITSELF(leaky_relu);
PD_DECLARE_KERNEL(leaky_relu, OneDNN, ONEDNN);
USE_OP_ITSELF(gelu);
Expand Down

This file was deleted.

Loading

0 comments on commit 7575d37

Please sign in to comment.