diff options
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_log1p.cc')
-rw-r--r-- | tensorflow/core/kernels/cwise_op_log1p.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_log1p.cc b/tensorflow/core/kernels/cwise_op_log1p.cc index 91a14989e6..03ea3a0a89 100644 --- a/tensorflow/core/kernels/cwise_op_log1p.cc +++ b/tensorflow/core/kernels/cwise_op_log1p.cc @@ -18,6 +18,18 @@ limitations under the License. namespace tensorflow { REGISTER5(UnaryOp, CPU, "Log1p", functor::log1p, float, Eigen::half, double, complex64, complex128); + +#if TENSORFLOW_USE_SYCL +#define REGISTER_SYCL_KERNEL(TYPE) \ + REGISTER_KERNEL_BUILDER( \ + Name("Log1p") \ + .Device(DEVICE_SYCL) \ + .TypeConstraint<TYPE>("T"), \ + UnaryOp<SYCLDevice, functor::log1p<TYPE>>); +REGISTER_SYCL_KERNEL(float); +#undef REGISTER_SYCL_KERNEL +#endif // TENSORFLOW_USE_SYCL + #if GOOGLE_CUDA REGISTER3(UnaryOp, GPU, "Log1p", functor::log1p, float, Eigen::half, double); #endif |