Skip to content

Commit c10bd5a

Browse files
authored
remove specialized factors. test ok on paconvert (PaddlePaddle#77889)
1 parent eec8214 commit c10bd5a

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

paddle/phi/kernels/impl/atan2_kernel_impl.h

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,6 @@ struct Atan2Functor {
5656
int64_t numel_;
5757
};
5858

59-
template <>
60-
struct Atan2Functor<int32_t> {
61-
Atan2Functor(const int32_t* x1, const int32_t* x2, double* out, int64_t numel)
62-
: x1_(x1), x2_(x2), out_(out), numel_(numel) {}
63-
64-
HOSTDEVICE void operator()(int64_t idx) const {
65-
out_[idx] =
66-
::atan2(static_cast<double>(x1_[idx]), static_cast<double>(x2_[idx]));
67-
}
68-
69-
const int32_t* x1_;
70-
const int32_t* x2_;
71-
double* out_;
72-
int64_t numel_;
73-
};
74-
75-
template <>
76-
struct Atan2Functor<int64_t> {
77-
Atan2Functor(const int64_t* x1, const int64_t* x2, double* out, int64_t numel)
78-
: x1_(x1), x2_(x2), out_(out), numel_(numel) {}
79-
80-
HOSTDEVICE void operator()(int64_t idx) const {
81-
out_[idx] =
82-
::atan2(static_cast<double>(x1_[idx]), static_cast<double>(x2_[idx]));
83-
}
84-
85-
const int64_t* x1_;
86-
const int64_t* x2_;
87-
double* out_;
88-
int64_t numel_;
89-
};
90-
9159
template <>
9260
struct Atan2Functor<double> {
9361
Atan2Functor(const double* x1, const double* x2, double* out, int64_t numel)

0 commit comments

Comments
 (0)