We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 272eee3 commit 573490eCopy full SHA for 573490e
1 file changed
paddle/phi/kernels/cpu/elementwise.h
@@ -35,25 +35,7 @@ struct SameDimsAddFunctor {
35
};
36
37
template <typename DevCtx, typename T>
38
-struct SameDimsAddFunctor<
39
- DevCtx,
40
- T,
41
- typename std::enable_if<std::is_floating_point<T>::value>::type> {
42
- void operator()(const DevCtx& dev_ctx,
43
- const DenseTensor& x,
44
- const DenseTensor& y,
45
- DenseTensor* z) {
46
- auto blas = funcs::GetBlas<DevCtx, T>(dev_ctx);
47
- blas.VADD(
48
- x.numel(), x.data<T>(), y.data<T>(), dev_ctx.template Alloc<T>(z));
49
- }
50
-};
51
-
52
-template <typename DevCtx, typename T>
53
54
55
56
- typename std::enable_if<!std::is_floating_point<T>::value>::type> {
+struct SameDimsAddFunctor<DevCtx, T> {
57
void operator()(const DevCtx& dev_ctx,
58
const DenseTensor& x,
59
const DenseTensor& y,
0 commit comments