aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/image
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-09-23 17:14:53 +0000
committerGravatar Yong Tang <yong.tang.github@outlook.com>2018-09-23 17:14:53 +0000
commita4eecdb369ecdae3b7fe7c1415d7b3b55bcc7b9e (patch)
tree18d7eb87e931f0c51ad64cd6ed1ec0628b2b0f80 /tensorflow/contrib/image
parent04e20965487c36f43ba5c773b547b23e39478a5c (diff)
Fix GPU build issue on python 3
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/contrib/image')
-rw-r--r--tensorflow/contrib/image/kernels/image_ops.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/tensorflow/contrib/image/kernels/image_ops.h b/tensorflow/contrib/image/kernels/image_ops.h
index 6b63eed130..7fac774d07 100644
--- a/tensorflow/contrib/image/kernels/image_ops.h
+++ b/tensorflow/contrib/image/kernels/image_ops.h
@@ -71,14 +71,7 @@ class ProjectiveGenerator {
(transform[3] * output_x + transform[4] * output_y + transform[5]) /
projection;
- // TODO(ringwalt): Add a fill value input.
-#if (defined __CUDA_ARCH__) && (CUDART_VERSION < 8000)
- // On CUDA versions previous to 8.0, only __shared__ variables
- // could be declared as static in the device code.
const T fill_value = T(0);
-#else
- static const T fill_value = T(0);
-#endif
switch (interpolation_) {
case INTERPOLATION_NEAREST:
// Switch the order of x and y again for indexing into the image.