diff options
author | 2016-11-17 15:37:00 -0800 | |
---|---|---|
committer | 2016-11-17 15:45:18 -0800 | |
commit | 54e5000e0b980abe905900599c4493fadae34a15 (patch) | |
tree | c1f0751e5565882a77646589360fe090bec3f3fc /tensorflow/core/kernels/cwise_op_sub.cc | |
parent | 8a5610cd9f0b7087c1a7e97071ba1cf9b885315a (diff) |
Merge changes from github.
Change: 139516555
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_sub.cc')
-rw-r--r-- | tensorflow/core/kernels/cwise_op_sub.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_sub.cc b/tensorflow/core/kernels/cwise_op_sub.cc index d000e54cfc..ed78ba37a8 100644 --- a/tensorflow/core/kernels/cwise_op_sub.cc +++ b/tensorflow/core/kernels/cwise_op_sub.cc @@ -24,6 +24,16 @@ REGISTER7(BinaryOp, CPU, "Sub", functor::sub, float, Eigen::half, double, int32, // int32 version of this op is needed, so explicitly include it. REGISTER(BinaryOp, CPU, "Sub", functor::sub, int32); #endif // __ANDROID_TYPES_SLIM__ +#if TENSORFLOW_USE_SYCL +#define REGISTER_SYCL_KERNEL(TYPE) \ + REGISTER_KERNEL_BUILDER( \ + Name("Sub") \ + .Device(DEVICE_SYCL) \ + .TypeConstraint<TYPE>("T"), \ + BinaryOp<SYCLDevice, functor::sub<TYPE>>); +TF_CALL_NUMBER_TYPES(REGISTER_SYCL_KERNEL); +#undef REGISTER_SYCL_KERNEL +#endif // TENSORFLOW_USE_SYCL #if GOOGLE_CUDA REGISTER6(BinaryOp, GPU, "Sub", functor::sub, float, Eigen::half, double, int64, complex64, complex128); |