Fix logging format error in retrain.py (#16738)
authorYong Tang <yong.tang.github@outlook.com>
Mon, 5 Feb 2018 04:01:28 +0000 (20:01 -0800)
committerShanqing Cai <cais@google.com>
Mon, 5 Feb 2018 04:01:28 +0000 (23:01 -0500)
This fix fixes the logging format error in
`tensorflow/examples/image_retraining/retrain.py`.

This fix fixes 16735.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
tensorflow/examples/image_retraining/retrain.py

index ec22684..58c5f87 100644 (file)
@@ -344,8 +344,8 @@ def maybe_download_and_extract(data_url):
     filepath, _ = urllib.request.urlretrieve(data_url, filepath, _progress)
     print()
     statinfo = os.stat(filepath)
-    tf.logging.info('Successfully downloaded', filename, statinfo.st_size,
-                    'bytes.')
+    tf.logging.info('Successfully downloaded %s %d bytes.',
+                    filename, statinfo.st_size)
     print('Extracting file from ', filepath)
     tarfile.open(filepath, 'r:gz').extractall(dest_directory)
   else: