diff options
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_isnan.cc')
-rw-r--r-- | tensorflow/core/kernels/cwise_op_isnan.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/cwise_op_isnan.cc b/tensorflow/core/kernels/cwise_op_isnan.cc index d2bac23882..c394087ed8 100644 --- a/tensorflow/core/kernels/cwise_op_isnan.cc +++ b/tensorflow/core/kernels/cwise_op_isnan.cc @@ -17,6 +17,7 @@ limitations under the License. namespace tensorflow { REGISTER3(UnaryOp, CPU, "IsNan", functor::isnan, float, Eigen::half, double); + #if TENSORFLOW_USE_SYCL #define REGISTER_SYCL_KERNEL(TYPE) \ REGISTER_KERNEL_BUILDER( \ @@ -24,9 +25,10 @@ REGISTER3(UnaryOp, CPU, "IsNan", functor::isnan, float, Eigen::half, double); .Device(DEVICE_SYCL) \ .TypeConstraint<TYPE>("T"), \ UnaryOp<SYCLDevice, functor::isnan<TYPE>>); -TF_CALL_REAL_NUMBER_TYPES(REGISTER_SYCL_KERNEL); +REGISTER_SYCL_KERNEL(float); #undef REGISTER_SYCL_KERNEL #endif // TENSORFLOW_USE_SYCL + #if GOOGLE_CUDA REGISTER3(UnaryOp, GPU, "IsNan", functor::isnan, float, Eigen::half, double); #endif |