aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/depthwise_conv_op.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-05-28 09:36:01 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-28 09:39:50 -0700
commit848123e61c95b030a5034b2cdaa504870ebf7da6 (patch)
tree754d62146f22c4f5986a32749c96d4e8562f01d9 /tensorflow/core/kernels/depthwise_conv_op.cc
parent409419bcce3d191250774ba58079a14b4a5c187c (diff)
Fix incorrect condition to instantiate depthwise_ops introduced in commit 15d9f00fa. The change should have excluded depthwise_conv2d for doubles on windows debug builds, but it excluded it for all windows and all debug builds.
PiperOrigin-RevId: 157345929
Diffstat (limited to 'tensorflow/core/kernels/depthwise_conv_op.cc')
-rw-r--r--tensorflow/core/kernels/depthwise_conv_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/depthwise_conv_op.cc b/tensorflow/core/kernels/depthwise_conv_op.cc
index 2e7213f956..ccd33c0861 100644
--- a/tensorflow/core/kernels/depthwise_conv_op.cc
+++ b/tensorflow/core/kernels/depthwise_conv_op.cc
@@ -441,7 +441,7 @@ class DepthwiseConv2dNativeOp : public BinaryOp<T> {
DepthwiseConv2dNativeOp<CPUDevice, T>);
TF_CALL_float(REGISTER_CPU_KERNEL);
-#if defined(PLATFORM_WINDOWS) && !defined(_DEBUG)
+#if !defined(PLATFORM_WINDOWS) || !defined(_DEBUG)
TF_CALL_double(REGISTER_CPU_KERNEL);
#endif