Skip to content

Commit

Permalink
xpu support inplace flatten (PaddlePaddle#48909)
Browse files Browse the repository at this point in the history
This is a PR to catch up with latest xpu white list strategy
(PaddlePaddle#48606)
, since original list only include 'fluid' fashion names, but new list
must include 'phi' fashion as well.
Refer to paddle/phi/core/kernel_factory.cc for more details.
  • Loading branch information
XiaociZhang authored Dec 9, 2022
1 parent 5ebb634 commit 3c4e040
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions paddle/phi/backends/xpu/xpu2_op_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ XPUOpMap& get_kl2_ops() {
phi::DataType::INT8,
phi::DataType::FLOAT16,
phi::DataType::FLOAT32})},
{"flatten_with_xshape",
XPUKernelSet({phi::DataType::INT64,
phi::DataType::INT32,
phi::DataType::INT8,
phi::DataType::FLOAT16,
phi::DataType::FLOAT32})},
{"flatten_grad",
XPUKernelSet({phi::DataType::INT64,
phi::DataType::INT32,
Expand Down

0 comments on commit 3c4e040

Please sign in to comment.