aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/image
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2017-10-04 19:14:02 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-10-04 19:34:59 -0700
commit2c3bf9eff79156e32512e8d6da2179cd044167b8 (patch)
tree1c5a6c81f285469a1d97fdcdfe6951932782e8e8 /tensorflow/contrib/image
parentef2ee630e8fe290b06363f13ff440b4efcec9c81 (diff)
[Windows] Include tf.contrib.image ops as part of the Windows build.
Fixes #9672. PiperOrigin-RevId: 171098255
Diffstat (limited to 'tensorflow/contrib/image')
-rwxr-xr-xtensorflow/contrib/image/BUILD1
-rw-r--r--tensorflow/contrib/image/python/ops/distort_image_ops.py3
-rwxr-xr-xtensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py3
3 files changed, 5 insertions, 2 deletions
diff --git a/tensorflow/contrib/image/BUILD b/tensorflow/contrib/image/BUILD
index a18f14112e..d0600d4668 100755
--- a/tensorflow/contrib/image/BUILD
+++ b/tensorflow/contrib/image/BUILD
@@ -211,6 +211,7 @@ py_library(
srcs_version = "PY2AND3",
deps = [
":image_py",
+ ":single_image_random_dot_stereograms_ops",
"//tensorflow/contrib/util:util_py",
"//tensorflow/python:framework_ops",
"//tensorflow/python:platform",
diff --git a/tensorflow/contrib/image/python/ops/distort_image_ops.py b/tensorflow/contrib/image/python/ops/distort_image_ops.py
index 39f023a2b4..06e8e4ee72 100644
--- a/tensorflow/contrib/image/python/ops/distort_image_ops.py
+++ b/tensorflow/contrib/image/python/ops/distort_image_ops.py
@@ -17,6 +17,7 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
+from tensorflow.contrib.image.ops import gen_distort_image_ops
from tensorflow.contrib.util import loader
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
@@ -132,7 +133,7 @@ def adjust_hsv_in_yiq(image,
orig_dtype = image.dtype
flt_image = image_ops.convert_image_dtype(image, dtypes.float32)
- rgb_altered = _distort_image_ops.adjust_hsv_in_yiq(
+ rgb_altered = gen_distort_image_ops.adjust_hsv_in_yiq(
flt_image, delta_hue, scale_saturation, scale_value)
return image_ops.convert_image_dtype(rgb_altered, orig_dtype)
diff --git a/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py b/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py
index 79261c5e75..5cccf26028 100755
--- a/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py
+++ b/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py
@@ -17,6 +17,7 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
+from tensorflow.contrib.image.ops import gen_single_image_random_dot_stereograms_ops
from tensorflow.contrib.util import loader
from tensorflow.python.framework import ops
from tensorflow.python.platform import resource_loader
@@ -107,7 +108,7 @@ def single_image_random_dot_stereograms(
'depth_values'
"""
- result = _sirds_ops.single_image_random_dot_stereograms(
+ result = gen_single_image_random_dot_stereograms_ops.single_image_random_dot_stereograms( # pylint: disable=line-too-long
depth_values=depth_values,
hidden_surface_removal=hidden_surface_removal,
convergence_dots_size=convergence_dots_size,