From 0aa725871e5aba7463f5a94429a3a372a11f63f7 Mon Sep 17 00:00:00 2001 From: angusluo Date: Fri, 13 Mar 2020 12:08:31 +0800 Subject: [PATCH] change tf.image.decode_image to tf.io.decode_image tf.image.decode_image to tf.io.decode_image for API migration and consistency. Please see https://www.tensorflow.org/api_docs/python/tf/io/decode_image --- tensorflow/python/framework/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py index f716dfa33dd..5d60d45ac2f 100644 --- a/tensorflow/python/framework/ops.py +++ b/tensorflow/python/framework/ops.py @@ -605,7 +605,7 @@ class Tensor(_TensorLike): ```python _, image_data = tf.compat.v1.TFRecordReader(...).read(...) - image = tf.image.decode_png(image_data, channels=3) + image = tf.io.decode_png(image_data, channels=3) # The height and width dimensions of `image` are data dependent, and # cannot be computed without executing the op.