aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/models/image/cifar10/cifar10.py
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2015-11-09 10:11:07 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2015-11-09 10:11:07 -0800
commit61d3a958d6d83cb6037490d933b47621cc4009cc (patch)
tree20630337ec30cbc6d974730d3bfdd22508f6e257 /tensorflow/models/image/cifar10/cifar10.py
parent9f64983a8458700ba1aec613a755e8264b1608e0 (diff)
TensorFlow: Initial steps towards python3 support, some documentation
bug fixes -- reindents to 2 for some of the files to match our internal requirements. Thanks to Martin Andrews for the basic_usage.md suggested fix via Gerrit. Base CL: 107394029
Diffstat (limited to 'tensorflow/models/image/cifar10/cifar10.py')
-rw-r--r--tensorflow/models/image/cifar10/cifar10.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/models/image/cifar10/cifar10.py b/tensorflow/models/image/cifar10/cifar10.py
index 7870080820..6d79029dc8 100644
--- a/tensorflow/models/image/cifar10/cifar10.py
+++ b/tensorflow/models/image/cifar10/cifar10.py
@@ -15,6 +15,7 @@ Summary of available functions:
# Create a graph to run one step of training with respect to the loss.
train_op = train(loss, global_step)
"""
+from __future__ import print_function
# pylint: disable=missing-docstring
import gzip
import os
@@ -474,7 +475,7 @@ def maybe_download_and_extract():
float(count * block_size) / float(total_size) * 100.0))
sys.stdout.flush()
filepath, _ = urllib.urlretrieve(DATA_URL, filepath, reporthook=_progress)
- print
+ print()
statinfo = os.stat(filepath)
- print 'Succesfully downloaded', filename, statinfo.st_size, 'bytes.'
+ print('Succesfully downloaded', filename, statinfo.st_size, 'bytes.')
tarfile.open(filepath, 'r:gz').extractall(dest_directory)