aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/cwise_op_squared_difference.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_squared_difference.cc')
-rw-r--r--tensorflow/core/kernels/cwise_op_squared_difference.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_squared_difference.cc b/tensorflow/core/kernels/cwise_op_squared_difference.cc
index edd6c07146..78fefc69c7 100644
--- a/tensorflow/core/kernels/cwise_op_squared_difference.cc
+++ b/tensorflow/core/kernels/cwise_op_squared_difference.cc
@@ -35,4 +35,17 @@ REGISTER_KERNEL_BUILDER(
.TypeConstraint<int32>("T"),
BinaryOp<CPUDevice, functor::squared_difference<int32>>);
+#ifdef TENSORFLOW_USE_SYCL
+REGISTER3(BinaryOp, SYCL, "SquaredDifference", functor::squared_difference,
+ float, double, int64);
+REGISTER_KERNEL_BUILDER(
+ Name("SquaredDifference")
+ .Device(DEVICE_SYCL)
+ .HostMemory("x")
+ .HostMemory("y")
+ .HostMemory("z")
+ .TypeConstraint<int32>("T"),
+ BinaryOp<CPUDevice, functor::squared_difference<int32>>);
+#endif // TENSORFLOW_USE_SYCL
+
} // namespace tensorflow