Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 2958ac1

Browse files
authored
Merge pull request #240 from cclauss/patch-2
from six.moves import xrange for Python 3
2 parents 1defd91 + 8dc14c5 commit 2958ac1

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

tensor2tensor/data_generators/algorithmic_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
# Dependency imports
2323

24+
from six.moves import xrange
2425
from tensor2tensor.data_generators import algorithmic
2526

2627
import tensorflow as tf

tensor2tensor/data_generators/lm1b.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
# Dependency imports
2828

29+
from six.moves import xrange
2930
from tensor2tensor.data_generators import generator_utils
3031
from tensor2tensor.data_generators import text_encoder
3132
from tensor2tensor.data_generators import tokenizer

tensor2tensor/layers/common_attention.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
# Dependency imports
2525

26+
from six.moves import xrange
2627
from tensor2tensor.layers import common_layers
2728
from tensor2tensor.utils import expert_utils
2829

tensor2tensor/layers/rev_block.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
# Dependency imports
3030

31+
from six.moves import xrange
3132
import tensorflow as tf
3233
from tensorflow.python.framework import dtypes
3334
from tensorflow.python.framework import function

0 commit comments

Comments
 (0)