aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/image/python/ops/image_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/image/python/ops/image_ops.py')
-rw-r--r--tensorflow/contrib/image/python/ops/image_ops.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/contrib/image/python/ops/image_ops.py b/tensorflow/contrib/image/python/ops/image_ops.py
index cd984c8054..86b0ffe9a0 100644
--- a/tensorflow/contrib/image/python/ops/image_ops.py
+++ b/tensorflow/contrib/image/python/ops/image_ops.py
@@ -33,7 +33,8 @@ _image_ops_so = loader.load_op_library(
resource_loader.get_path_to_datafile("_image_ops.so"))
_IMAGE_DTYPES = set(
- [dtypes.uint8, dtypes.int32, dtypes.int64, dtypes.float32, dtypes.float64])
+ [dtypes.uint8, dtypes.int32, dtypes.int64,
+ dtypes.float16, dtypes.float32, dtypes.float64])
ops.RegisterShape("ImageConnectedComponents")(common_shapes.call_cpp_shape_fn)
ops.RegisterShape("ImageProjectiveTransform")(common_shapes.call_cpp_shape_fn)