Fix type error: convert "view" to "list" for indexing.

PiperOrigin-RevId: 156059413
This commit is contained in:
A. Unique TensorFlower 2017-05-15 08:57:14 -07:00 committed by TensorFlower Gardener
parent a3f1377b38
commit 6d43171b41

View File

@ -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(