aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/models/image/cifar10/cifar10_eval.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-02-09 12:56:46 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2016-02-09 13:06:51 -0800
commit27bbe92711a93613eca843772b6e7eb32ff96c35 (patch)
tree04819ee6b65774ee1496bc62ea50d2cc057608df /tensorflow/models/image/cifar10/cifar10_eval.py
parent3c13ae058ea45d855d8029b3d19f6567b86430b5 (diff)
Make the gfile package available when importing tensorflow.
Update programs that were importing both 'tensorflow' and 'gfile' to use 'gfile' from the tensorflow import. Change: 114249943
Diffstat (limited to 'tensorflow/models/image/cifar10/cifar10_eval.py')
-rw-r--r--tensorflow/models/image/cifar10/cifar10_eval.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/models/image/cifar10/cifar10_eval.py b/tensorflow/models/image/cifar10/cifar10_eval.py
index 6dc1db7248..9ba89e4e1e 100644
--- a/tensorflow/models/image/cifar10/cifar10_eval.py
+++ b/tensorflow/models/image/cifar10/cifar10_eval.py
@@ -39,7 +39,7 @@ import math
import time
import tensorflow.python.platform
-from tensorflow.python.platform import gfile
+
import numpy as np
import tensorflow as tf
@@ -151,9 +151,9 @@ def evaluate():
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
- if gfile.Exists(FLAGS.eval_dir):
- gfile.DeleteRecursively(FLAGS.eval_dir)
- gfile.MakeDirs(FLAGS.eval_dir)
+ if tf.gfile.Exists(FLAGS.eval_dir):
+ tf.gfile.DeleteRecursively(FLAGS.eval_dir)
+ tf.gfile.MakeDirs(FLAGS.eval_dir)
evaluate()