diff options
author | 2016-02-10 15:13:12 -0800 | |
---|---|---|
committer | 2016-02-10 16:03:13 -0800 | |
commit | 7760ce56fc3ab4ab8cdc408e29d8ad8b539c417e (patch) | |
tree | df71073fc7b7b1b590a0674b0bd10571b4040aa2 /tensorflow/examples | |
parent | bc6f617bd636c4e371d7c03d153e9ce9b8b0e3c3 (diff) |
Get rid of some import cruft.
Change: 114374558
Diffstat (limited to 'tensorflow/examples')
9 files changed, 6 insertions, 15 deletions
diff --git a/tensorflow/examples/how_tos/reading_data/convert_to_records.py b/tensorflow/examples/how_tos/reading_data/convert_to_records.py index 30b5a384a8..c8819e05ce 100644 --- a/tensorflow/examples/how_tos/reading_data/convert_to_records.py +++ b/tensorflow/examples/how_tos/reading_data/convert_to_records.py @@ -19,8 +19,6 @@ from __future__ import division from __future__ import print_function import os -import tensorflow.python.platform - import numpy import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data diff --git a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py index 93ab4dfdf8..ef46329cd5 100644 --- a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py +++ b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded.py @@ -33,7 +33,6 @@ from __future__ import print_function import os.path import time -import tensorflow.python.platform import numpy import tensorflow as tf diff --git a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py index 9a7e4e8e81..b8bd143ec8 100644 --- a/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py +++ b/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py @@ -32,7 +32,6 @@ from __future__ import print_function import os.path import time -import tensorflow.python.platform import numpy import tensorflow as tf diff --git a/tensorflow/examples/how_tos/reading_data/fully_connected_reader.py b/tensorflow/examples/how_tos/reading_data/fully_connected_reader.py index 774e972241..99afa54f06 100644 --- a/tensorflow/examples/how_tos/reading_data/fully_connected_reader.py +++ b/tensorflow/examples/how_tos/reading_data/fully_connected_reader.py @@ -30,7 +30,6 @@ from __future__ import print_function import os.path import time -import tensorflow.python.platform import numpy import tensorflow as tf diff --git a/tensorflow/examples/tutorials/mnist/fully_connected_feed.py b/tensorflow/examples/tutorials/mnist/fully_connected_feed.py index 7a4f8f6023..8a9884a508 100644 --- a/tensorflow/examples/tutorials/mnist/fully_connected_feed.py +++ b/tensorflow/examples/tutorials/mnist/fully_connected_feed.py @@ -22,7 +22,6 @@ from __future__ import print_function import os.path import time -import tensorflow.python.platform import numpy from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf diff --git a/tensorflow/examples/tutorials/mnist/input_data.py b/tensorflow/examples/tutorials/mnist/input_data.py index 6ac666b2b5..7c32ce71fa 100644 --- a/tensorflow/examples/tutorials/mnist/input_data.py +++ b/tensorflow/examples/tutorials/mnist/input_data.py @@ -21,8 +21,6 @@ from __future__ import print_function import gzip import os -import tensorflow.python.platform - import numpy from six.moves import urllib from six.moves import xrange # pylint: disable=redefined-builtin diff --git a/tensorflow/examples/tutorials/mnist/mnist.py b/tensorflow/examples/tutorials/mnist/mnist.py index 72629e959d..5cbd630656 100644 --- a/tensorflow/examples/tutorials/mnist/mnist.py +++ b/tensorflow/examples/tutorials/mnist/mnist.py @@ -32,7 +32,6 @@ from __future__ import print_function import math -import tensorflow.python.platform import tensorflow as tf # The MNIST dataset has 10 classes, representing the digits 0 through 9. diff --git a/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py b/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py index 1e3fdf92d5..b64e48ea55 100644 --- a/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py +++ b/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py @@ -29,10 +29,11 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import tensorflow.python.platform -from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf +from tensorflow.examples.tutorials.mnist import input_data + + flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_boolean('fake_data', False, 'If true, uses fake data ' diff --git a/tensorflow/examples/tutorials/word2vec/word2vec_basic.py b/tensorflow/examples/tutorials/word2vec/word2vec_basic.py index d8ef3377f8..09d0678d3e 100644 --- a/tensorflow/examples/tutorials/word2vec/word2vec_basic.py +++ b/tensorflow/examples/tutorials/word2vec/word2vec_basic.py @@ -16,17 +16,16 @@ from __future__ import absolute_import from __future__ import print_function -import tensorflow.python.platform - import collections import math -import numpy as np import os import random +import zipfile + +import numpy as np from six.moves import urllib from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf -import zipfile # Step 1: Download the data. url = 'http://mattmahoney.net/dc/' |