Skip to content

Commit

Permalink
Merge pull request #45 from cclauss/patch-1
Browse files Browse the repository at this point in the history
xrange() was removed for Python on 1/1/2020
  • Loading branch information
dm-jrae authored Jul 23, 2021
2 parents d3d94b3 + 1e85949 commit f5981c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dnc/addressing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
from dnc import addressing
from dnc import util

try:
xrange
except NameError:
xrange = range


class WeightedSoftmaxTest(tf.test.TestCase):

Expand Down
5 changes: 5 additions & 0 deletions dnc/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

from dnc import util

try:
xrange
except NameError:
xrange = range


class BatchInvertPermutation(tf.test.TestCase):

Expand Down

0 comments on commit f5981c6

Please sign in to comment.