Skip to content

Commit

Permalink
xpu support inplace flatten (#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
(#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 committed Dec 9, 2022
1 parent 905be66 commit e6fdcd9
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 e6fdcd9

Please sign in to comment.