Skip to content

Commit 54365d8

Browse files
committed
fix bugs
1 parent 7318637 commit 54365d8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

paddle/phi/kernels/funcs/math_function_impl.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ void SetConstant<DeviceContext, T>::operator()(const DeviceContext& context,
3434

3535
#ifdef PADDLE_WITH_XPU
3636
template <typename T>
37-
void SetConstant<XPUContext, T>::operator()(const XPUContext& context,
38-
phi::DenseTensor* tensor,
39-
T num) {
40-
phi::VisitDataType(tensor->dtype(),
41-
TensorSetConstantXPU<T>(tensor, num, context.GetPlace()));
42-
}
43-
template <typename T>
4437
void SetConstant<phi::XPUContext, T>::operator()(const phi::XPUContext& context,
4538
phi::DenseTensor* tensor,
4639
T num) {

0 commit comments

Comments
 (0)