From eac3088bebde5d540f363e23ca097973b7f523c0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 23 Jul 2021 09:49:15 +0200 Subject: [PATCH 1/2] xrange() was removed for Python on 1/1/2020 --- dnc/util_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dnc/util_test.py b/dnc/util_test.py index 55e3f25..a60134b 100644 --- a/dnc/util_test.py +++ b/dnc/util_test.py @@ -23,6 +23,11 @@ from dnc import util +try: + xrange +except NameError: + xrange = range + class BatchInvertPermutation(tf.test.TestCase): From 1e8594949d9fa378b579ad8d6133ed76341ffa30 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 23 Jul 2021 09:50:17 +0200 Subject: [PATCH 2/2] xrange() was removed for Python on 1/1/2020 --- dnc/addressing_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dnc/addressing_test.py b/dnc/addressing_test.py index a8a8ac4..9da1b89 100644 --- a/dnc/addressing_test.py +++ b/dnc/addressing_test.py @@ -25,6 +25,11 @@ from dnc import addressing from dnc import util +try: + xrange +except NameError: + xrange = range + class WeightedSoftmaxTest(tf.test.TestCase):