aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/ops/math_grad_test.cc
diff options
context:
space:
mode:
authorGravatar Martin Wicke <wicke@google.com>2016-12-14 15:46:53 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-14 16:04:11 -0800
commit2e4869af1afe55135d522142be3a2a483162a1b1 (patch)
treec676b228682e796ff0c2896b20faf97b66b8a1f2 /tensorflow/core/ops/math_grad_test.cc
parent811629aed466db32eeefbd60783e199d2fe154a9 (diff)
Merge changes from github.
Change: 142074581
Diffstat (limited to 'tensorflow/core/ops/math_grad_test.cc')
-rw-r--r--tensorflow/core/ops/math_grad_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/core/ops/math_grad_test.cc b/tensorflow/core/ops/math_grad_test.cc
index b3b523001b..1fc5a1b128 100644
--- a/tensorflow/core/ops/math_grad_test.cc
+++ b/tensorflow/core/ops/math_grad_test.cc
@@ -388,6 +388,9 @@ class TestOp : public OpKernel {
void Compute(OpKernelContext* ctx) override { ctx->set_output(0, Tensor()); }
};
REGISTER_KERNEL_BUILDER(Name("TestOpWithNoGrad").Device(DEVICE_CPU), TestOp);
+#ifdef TENSORFLOW_USE_SYCL
+REGISTER_KERNEL_BUILDER(Name("TestOpWithNoGrad").Device(DEVICE_SYCL), TestOp);
+#endif // TENSORFLOW_USE_SYCL
TEST_F(MathGradTest, Error_Reporting) {
auto x = test::AsTensor<float>({-3.f});