diff options
Diffstat (limited to 'tensorflow/core/kernels/reduction_ops_sum.cc')
-rw-r--r-- | tensorflow/core/kernels/reduction_ops_sum.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/core/kernels/reduction_ops_sum.cc b/tensorflow/core/kernels/reduction_ops_sum.cc index 828e1a588c..c1f4f3475a 100644 --- a/tensorflow/core/kernels/reduction_ops_sum.cc +++ b/tensorflow/core/kernels/reduction_ops_sum.cc @@ -67,11 +67,8 @@ REGISTER_KERNEL_BUILDER( .HostMemory("reduction_indices"), \ ReductionOp<SYCLDevice, type, Eigen::internal::SumReducer<type>>); REGISTER_SYCL_KERNELS(float); -#undef REGISTER_SYCL_KERNELS +REGISTER_SYCL_KERNELS(double); -// A special GPU kernel for int32. -// TODO(b/25387198): Also enable int32 in device memory. This kernel -// registration requires all int32 inputs and outputs to be in host memory. REGISTER_KERNEL_BUILDER( Name("Sum") .Device(DEVICE_SYCL) @@ -81,6 +78,7 @@ REGISTER_KERNEL_BUILDER( .HostMemory("output") .HostMemory("reduction_indices"), ReductionOp<CPUDevice, int32, Eigen::internal::SumReducer<int32>>); +#undef REGISTER_SYCL_KERNELS #endif // TENSORFLOW_USE_SYCL } // namespace tensorflow |