Commit 0d9a3abd authored by Neal Wu's avatar Neal Wu
Browse files

Remove all references to 'tensorflow.models' which is no longer correct

parent 061142a0
...@@ -18,4 +18,4 @@ from __future__ import absolute_import ...@@ -18,4 +18,4 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from tensorflow.models.embedding import gen_word2vec import gen_word2vec
...@@ -42,7 +42,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin ...@@ -42,7 +42,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.models.embedding import gen_word2vec as word2vec import gen_word2vec as word2vec
flags = tf.app.flags flags = tf.app.flags
......
...@@ -41,7 +41,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin ...@@ -41,7 +41,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.models.embedding import gen_word2vec as word2vec import gen_word2vec as word2vec
flags = tf.app.flags flags = tf.app.flags
......
...@@ -23,7 +23,7 @@ import os ...@@ -23,7 +23,7 @@ import os
import tensorflow as tf import tensorflow as tf
from tensorflow.models.embedding import word2vec_optimized import word2vec_optimized
flags = tf.app.flags flags = tf.app.flags
......
...@@ -23,7 +23,7 @@ import os ...@@ -23,7 +23,7 @@ import os
import tensorflow as tf import tensorflow as tf
from tensorflow.models.embedding import word2vec import word2vec
flags = tf.app.flags flags = tf.app.flags
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
To run, use: To run, use:
bazel run -c opt --config=cuda \ bazel run -c opt --config=cuda \
third_party/tensorflow/models/image/alexnet:alexnet_benchmark models/tutorials/image/alexnet:alexnet_benchmark
Across 100 steps on batch size = 128. Across 100 steps on batch size = 128.
......
...@@ -18,5 +18,5 @@ from __future__ import absolute_import ...@@ -18,5 +18,5 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from tensorflow.models.image.cifar10 import cifar10 import cifar10
from tensorflow.models.image.cifar10 import cifar10_input import cifar10_input
...@@ -44,7 +44,7 @@ import tarfile ...@@ -44,7 +44,7 @@ import tarfile
from six.moves import urllib from six.moves import urllib
import tensorflow as tf import tensorflow as tf
from tensorflow.models.image.cifar10 import cifar10_input import cifar10_input
FLAGS = tf.app.flags.FLAGS FLAGS = tf.app.flags.FLAGS
......
...@@ -41,7 +41,7 @@ import time ...@@ -41,7 +41,7 @@ import time
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.models.image.cifar10 import cifar10 import cifar10
FLAGS = tf.app.flags.FLAGS FLAGS = tf.app.flags.FLAGS
......
...@@ -23,7 +23,7 @@ import os ...@@ -23,7 +23,7 @@ import os
import tensorflow as tf import tensorflow as tf
from tensorflow.models.image.cifar10 import cifar10_input import cifar10_input
class CIFAR10InputTest(tf.test.TestCase): class CIFAR10InputTest(tf.test.TestCase):
......
...@@ -47,7 +47,7 @@ import time ...@@ -47,7 +47,7 @@ import time
import numpy as np import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf import tensorflow as tf
from tensorflow.models.image.cifar10 import cifar10 import cifar10
FLAGS = tf.app.flags.FLAGS FLAGS = tf.app.flags.FLAGS
......
...@@ -41,7 +41,7 @@ import time ...@@ -41,7 +41,7 @@ import time
import tensorflow as tf import tensorflow as tf
from tensorflow.models.image.cifar10 import cifar10 import cifar10
FLAGS = tf.app.flags.FLAGS FLAGS = tf.app.flags.FLAGS
......
...@@ -18,4 +18,4 @@ from __future__ import absolute_import ...@@ -18,4 +18,4 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from tensorflow.models.rnn.ptb import reader import reader
...@@ -61,7 +61,7 @@ import time ...@@ -61,7 +61,7 @@ import time
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.models.rnn.ptb import reader import reader
flags = tf.flags flags = tf.flags
logging = tf.logging logging = tf.logging
...@@ -126,7 +126,7 @@ class PTBModel(object): ...@@ -126,7 +126,7 @@ class PTBModel(object):
if is_training and config.keep_prob < 1: if is_training and config.keep_prob < 1:
inputs = tf.nn.dropout(inputs, config.keep_prob) inputs = tf.nn.dropout(inputs, config.keep_prob)
# Simplified version of tensorflow.models.rnn.rnn.py's rnn(). # Simplified version of models/tutorials/rnn/rnn.py's rnn().
# This builds an unrolled LSTM for tutorial purposes only. # This builds an unrolled LSTM for tutorial purposes only.
# In general, use the rnn() or state_saving_rnn() from rnn.py. # In general, use the rnn() or state_saving_rnn() from rnn.py.
# #
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
# ============================================================================== # ==============================================================================
"""Tests for tensorflow.models.ptb_lstm.ptb_reader.""" """Tests for models.tutorials.rnn.ptb.reader."""
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division
...@@ -23,7 +23,7 @@ import os.path ...@@ -23,7 +23,7 @@ import os.path
import tensorflow as tf import tensorflow as tf
from tensorflow.models.rnn.ptb import reader import reader
class PtbReaderTest(tf.test.TestCase): class PtbReaderTest(tf.test.TestCase):
......
...@@ -18,5 +18,5 @@ from __future__ import absolute_import ...@@ -18,5 +18,5 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from tensorflow.models.rnn.translate import data_utils import data_utils
from tensorflow.models.rnn.translate import seq2seq_model import seq2seq_model
...@@ -25,7 +25,7 @@ import numpy as np ...@@ -25,7 +25,7 @@ import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf import tensorflow as tf
from tensorflow.models.rnn.translate import data_utils import data_utils
class Seq2SeqModel(object): class Seq2SeqModel(object):
......
...@@ -42,8 +42,8 @@ import numpy as np ...@@ -42,8 +42,8 @@ import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf import tensorflow as tf
from tensorflow.models.rnn.translate import data_utils import data_utils
from tensorflow.models.rnn.translate import seq2seq_model import seq2seq_model
tf.app.flags.DEFINE_float("learning_rate", 0.5, "Learning rate.") tf.app.flags.DEFINE_float("learning_rate", 0.5, "Learning rate.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment