aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexandre Passos <apassos@google.com>2017-11-14 17:10:33 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-14 17:18:09 -0800
commitd16d8495d024e531b34d88745f99679414992fc2 (patch)
tree64920b3ead6dd45dbb155eaaa9fefb50995ee4d4
parent8ad5cc00f21eb9d6f1811d7ed771f6f042dba1ba (diff)
python3 fixes
PiperOrigin-RevId: 175758757
-rw-r--r--tensorflow/python/kernel_tests/template_test.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tensorflow/python/kernel_tests/template_test.py b/tensorflow/python/kernel_tests/template_test.py
index 798bd0fe89..40c0ade62a 100644
--- a/tensorflow/python/kernel_tests/template_test.py
+++ b/tensorflow/python/kernel_tests/template_test.py
@@ -513,8 +513,8 @@ class TemplateTest(test.TestCase):
tb = template.make_template("s", function_with_create, trainable=False)
# Initially there are not variables created.
- self.assertEqual([], ta.global_variables)
- self.assertEqual([], tb.global_variables)
+ self.assertEqual([], list(ta.global_variables))
+ self.assertEqual([], list(tb.global_variables))
# After calling there are variables created.
ta()
tb()
@@ -531,8 +531,8 @@ class TemplateTest(test.TestCase):
tb = template.make_template("bar", variable_scoped_function, True)
# Initially there are not variables created.
- self.assertEqual([], ta.trainable_variables)
- self.assertEqual([], tb.trainable_variables)
+ self.assertEqual([], list(ta.trainable_variables))
+ self.assertEqual([], list(tb.trainable_variables))
# After calling there are variables created.
ta()
tb()
@@ -550,8 +550,8 @@ class TemplateTest(test.TestCase):
variable_scoped_function_with_local_variable)
# Initially there are not variables created.
- self.assertEqual([], ta.local_variables)
- self.assertEqual([], tb.local_variables)
+ self.assertEqual([], list(ta.local_variables))
+ self.assertEqual([], list(tb.local_variables))
# After calling there are variables created.
ta()
tb()