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
This commit is contained in:
angusluo 2020-03-13 11:59:24 +08:00 committed by GitHub
parent 8756b99ac3
commit 8b9f28ddc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,8 +317,8 @@ class DecodeImageOp : public OpKernel {
} else {
status = errors::InvalidArgument(
"Got ", num_frames, " frames, but animated gifs ",
"can only be decoded by tf.image.decode_gif or ",
"tf.image.decode_image");
"can only be decoded by tf.io.decode_gif or ",
"tf.io.decode_image");
}
if (!status.ok()) {
VLOG(1) << status;