Skip to content

Commit 7318637

Browse files
committed
fix bugs
1 parent 2f9c231 commit 7318637

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

paddle/phi/kernels/funcs/math_function.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,6 @@ template struct SetConstant<phi::XPUContext, bool>;
6464
template struct SetConstant<phi::XPUContext, phi::dtype::complex<float>>;
6565
template struct SetConstant<phi::XPUContext, phi::dtype::complex<double>>;
6666

67-
template struct SetConstant<phi::XPUContext, phi::dtype::float16>;
68-
template struct SetConstant<phi::XPUContext, phi::dtype::bfloat16>;
69-
template struct SetConstant<phi::XPUContext, float>;
70-
template struct SetConstant<phi::XPUContext, double>;
71-
template struct SetConstant<phi::XPUContext, uint8_t>;
72-
template struct SetConstant<phi::XPUContext, int16_t>;
73-
template struct SetConstant<phi::XPUContext, int>;
74-
template struct SetConstant<phi::XPUContext, int64_t>;
75-
template struct SetConstant<phi::XPUContext, bool>;
76-
template struct SetConstant<phi::XPUContext, phi::dtype::complex<float>>;
77-
template struct SetConstant<phi::XPUContext, phi::dtype::complex<double>>;
78-
7967
#endif
8068

8169
#define DEFINE_CPU_TRANS(RANK) \

paddle/phi/kernels/funcs/math_function.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ struct SetConstant {
5555
};
5656

5757
#ifdef PADDLE_WITH_XPU
58-
template <typename T>
59-
struct SetConstant<XPUContext, T> {
60-
void operator()(const XPUContext& context, phi::DenseTensor* tensor, T num);
61-
};
62-
6358
template <typename T>
6459
struct SetConstant<phi::XPUContext, T> {
6560
void operator()(const phi::XPUContext& context,

0 commit comments

Comments
 (0)