Skip to content

Commit

Permalink
from six.moves import xrange (en masse) AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 5, 2018
1 parent 74c43aa commit ffb8041
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 6 deletions.
1 change: 1 addition & 0 deletions research/adversarial_text/adversarial_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# Dependency imports

from six.moves import xrange
import tensorflow as tf

flags = tf.app.flags
Expand Down
1 change: 1 addition & 0 deletions research/adversarial_text/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# Dependency imports

from six.moves import xrange
import tensorflow as tf
K = tf.keras

Expand Down
2 changes: 1 addition & 1 deletion research/maskgan/generate_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# Dependency imports

import numpy as np

from six.moves import xrange
import tensorflow as tf

import train_mask_gan
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/model_utils/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from __future__ import print_function

import numpy as np
from six.moves import xrange
import tensorflow as tf


Expand Down
2 changes: 1 addition & 1 deletion research/maskgan/model_utils/model_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Dependency imports
import numpy as np

from six.moves import xrange
import tensorflow as tf

# Useful for REINFORCE baseline.
Expand Down
2 changes: 2 additions & 0 deletions research/maskgan/model_utils/n_gram.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange


def hash_function(input_tuple):
"""Hash function for a tuple."""
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/critic_vd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf
from regularization import variational_dropout

Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/feedforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf

FLAGS = tf.app.flags.FLAGS
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf

# ZoneoutWrapper.
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/rnn_nas.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from __future__ import print_function

import collections
from six.moves import xrange
import tensorflow as tf

# NAS Code..
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/rnn_vd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf
from regularization import variational_dropout

Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/rnn_zaremba.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf

FLAGS = tf.app.flags.FLAGS
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/rollout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import collections

from six.moves import xrange
import tensorflow as tf

from losses import losses
Expand Down
2 changes: 1 addition & 1 deletion research/maskgan/models/seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from __future__ import print_function

import tensorflow as tf

from six.moves import xrange
from models import attention_utils

# ZoneoutWrapper.
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/seq2seq_nas.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from __future__ import print_function

import collections
from six.moves import xrange
import tensorflow as tf

from models import attention_utils
Expand Down
1 change: 1 addition & 0 deletions research/maskgan/models/seq2seq_vd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf

from models import attention_utils
Expand Down
2 changes: 1 addition & 1 deletion research/maskgan/models/seq2seq_zaremba.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from __future__ import print_function

import tensorflow as tf

from six.moves import xrange
from models import attention_utils

FLAGS = tf.app.flags.FLAGS
Expand Down
2 changes: 1 addition & 1 deletion research/maskgan/train_mask_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# Dependency imports

import numpy as np

from six.moves import xrange
import tensorflow as tf

import pretrain_mask_gan
Expand Down
1 change: 1 addition & 0 deletions research/slim/datasets/build_imagenet_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import threading

import numpy as np
from six.moves import xrange
import tensorflow as tf

tf.app.flags.DEFINE_string('train_directory', '/tmp/',
Expand Down
2 changes: 2 additions & 0 deletions research/slim/datasets/preprocess_imagenet_validation_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
import os.path
import sys

from six.moves import xrange


if __name__ == '__main__':
if len(sys.argv) < 3:
Expand Down
2 changes: 2 additions & 0 deletions research/slim/datasets/process_bounding_boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
import sys
import xml.etree.ElementTree as ET

from six.moves import xrange


class BoundingBox(object):
pass
Expand Down
2 changes: 1 addition & 1 deletion research/slim/nets/cyclegan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from __future__ import print_function

import numpy as np

from six.moves import xrange
import tensorflow as tf

layers = tf.contrib.layers
Expand Down
2 changes: 2 additions & 0 deletions research/slim/nets/dcgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

from math import log

from six.moves import xrange

import tensorflow as tf
slim = tf.contrib.slim

Expand Down
1 change: 1 addition & 0 deletions research/slim/nets/dcgan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from __future__ import division
from __future__ import print_function

from six.moves import xrange
import tensorflow as tf
from nets import dcgan

Expand Down

0 comments on commit ffb8041

Please sign in to comment.