From 6d43171b4169c1e41bdb98275cd629005c89cb4e Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 15 May 2017 08:57:14 -0700 Subject: [PATCH] Fix type error: convert "view" to "list" for indexing. PiperOrigin-RevId: 156059413 --- tensorflow/python/framework/meta_graph_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/framework/meta_graph_test.py b/tensorflow/python/framework/meta_graph_test.py index 6b9d2512cf2..10236576eaf 100644 --- a/tensorflow/python/framework/meta_graph_test.py +++ b/tensorflow/python/framework/meta_graph_test.py @@ -347,7 +347,8 @@ class ScopedMetaGraphTest(test.TestCase): imported_variables = meta_graph.import_scoped_meta_graph( meta_graph_def, import_scope="bar") self.assertEqual(len(imported_variables), 1) - self.assertEqual(imported_variables.values()[0].name, "foo/bar/myvar:0") + self.assertEqual(list(imported_variables.values())[0].name, + "foo/bar/myvar:0") def testScopedImportWithSelectedCollections(self): meta_graph_filename = os.path.join(