Unverified Commit d90d5280 authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #3206 from cclauss/from-six.moves-import-xrange

from six.moves import xrange (en masse)
parents 6fc65ee6 848cc592
...@@ -94,6 +94,7 @@ import threading ...@@ -94,6 +94,7 @@ import threading
import google3 import google3
import numpy as np import numpy as np
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
tf.app.flags.DEFINE_string('train_directory', '/tmp/', tf.app.flags.DEFINE_string('train_directory', '/tmp/',
......
...@@ -51,6 +51,7 @@ from __future__ import print_function ...@@ -51,6 +51,7 @@ from __future__ import print_function
import os import os
import os.path import os.path
import sys import sys
from six.moves import xrange
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -85,6 +85,7 @@ import glob ...@@ -85,6 +85,7 @@ import glob
import os.path import os.path
import sys import sys
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from six.moves import xrange
class BoundingBox(object): class BoundingBox(object):
......
...@@ -18,7 +18,7 @@ from __future__ import division ...@@ -18,7 +18,7 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
import numpy as np import numpy as np
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
layers = tf.contrib.layers layers = tf.contrib.layers
......
...@@ -19,6 +19,7 @@ from __future__ import print_function ...@@ -19,6 +19,7 @@ from __future__ import print_function
from math import log from math import log
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
slim = tf.contrib.slim slim = tf.contrib.slim
......
...@@ -18,6 +18,7 @@ from __future__ import absolute_import ...@@ -18,6 +18,7 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
from nets import dcgan from nets import dcgan
......
...@@ -25,6 +25,7 @@ import collections ...@@ -25,6 +25,7 @@ import collections
import re import re
import errorcounter as ec import errorcounter as ec
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
# Named tuple Part describes a part of a multi (1 or more) part code that # Named tuple Part describes a part of a multi (1 or more) part code that
......
...@@ -24,6 +24,7 @@ tensor_dim: gets a shape dimension as a constant integer if known otherwise a ...@@ -24,6 +24,7 @@ tensor_dim: gets a shape dimension as a constant integer if known otherwise a
runtime usable tensor value. runtime usable tensor value.
tensor_shape: returns the full shape of a tensor as the tensor_dim. tensor_shape: returns the full shape of a tensor as the tensor_dim.
""" """
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
......
...@@ -23,6 +23,7 @@ from string import maketrans ...@@ -23,6 +23,7 @@ from string import maketrans
import nn_ops import nn_ops
import shapes import shapes
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
import tensorflow.contrib.slim as slim import tensorflow.contrib.slim as slim
......
...@@ -20,6 +20,7 @@ import os.path ...@@ -20,6 +20,7 @@ import os.path
import numpy as np import numpy as np
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
from google.protobuf import text_format from google.protobuf import text_format
......
...@@ -22,6 +22,7 @@ import abc ...@@ -22,6 +22,7 @@ import abc
import numpy as np import numpy as np
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
from tensorflow.python.ops import nn from tensorflow.python.ops import nn
from tensorflow.python.ops import tensor_array_ops as ta from tensorflow.python.ops import tensor_array_ops as ta
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"""Utils for building DRAGNN specs.""" """Utils for building DRAGNN specs."""
from six.moves import xrange
import tensorflow as tf import tensorflow as tf
from dragnn.protos import spec_pb2 from dragnn.protos import spec_pb2
......
...@@ -23,6 +23,7 @@ import random ...@@ -23,6 +23,7 @@ import random
import tensorflow as tf import tensorflow as tf
from six.moves import xrange
from tensorflow.core.framework.summary_pb2 import Summary from tensorflow.core.framework.summary_pb2 import Summary
from tensorflow.python.framework import errors from tensorflow.python.framework import errors
from tensorflow.python.platform import gfile from tensorflow.python.platform import gfile
......
...@@ -22,6 +22,7 @@ from collections import defaultdict ...@@ -22,6 +22,7 @@ from collections import defaultdict
import os import os
import numpy as np import numpy as np
from sklearn.metrics.pairwise import pairwise_distances from sklearn.metrics.pairwise import pairwise_distances
from six.moves import xrange
import data_providers import data_providers
from estimators.get_estimator import get_estimator from estimators.get_estimator import get_estimator
from utils import util from utils import util
......
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