Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fa4305

Browse files
author
DefineFC
committed
xception_test on py3
1 parent 26c9654 commit 3fa4305

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

research/deeplab/core/xception_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# ==============================================================================
1515

1616
"""Tests for xception.py."""
17+
import six
1718
import numpy as np
1819
import tensorflow as tf
1920

@@ -309,7 +310,7 @@ def testClassificationShapes(self):
309310
'xception/middle_flow/block1': [2, 14, 14, 4],
310311
'xception/exit_flow/block1': [2, 7, 7, 8],
311312
'xception/exit_flow/block2': [2, 7, 7, 16]}
312-
for endpoint, shape in endpoint_to_shape.iteritems():
313+
for endpoint, shape in six.iteritems(endpoint_to_shape):
313314
self.assertListEqual(end_points[endpoint].get_shape().as_list(), shape)
314315

315316
def testFullyConvolutionalEndpointShapes(self):
@@ -330,7 +331,7 @@ def testFullyConvolutionalEndpointShapes(self):
330331
'xception/middle_flow/block1': [2, 21, 21, 4],
331332
'xception/exit_flow/block1': [2, 11, 11, 8],
332333
'xception/exit_flow/block2': [2, 11, 11, 16]}
333-
for endpoint, shape in endpoint_to_shape.iteritems():
334+
for endpoint, shape in six.iteritems(endpoint_to_shape):
334335
self.assertListEqual(end_points[endpoint].get_shape().as_list(), shape)
335336

336337
def testAtrousFullyConvolutionalEndpointShapes(self):
@@ -352,7 +353,7 @@ def testAtrousFullyConvolutionalEndpointShapes(self):
352353
'xception/middle_flow/block1': [2, 41, 41, 4],
353354
'xception/exit_flow/block1': [2, 41, 41, 8],
354355
'xception/exit_flow/block2': [2, 41, 41, 16]}
355-
for endpoint, shape in endpoint_to_shape.iteritems():
356+
for endpoint, shape in six.iteritems(endpoint_to_shape):
356357
self.assertListEqual(end_points[endpoint].get_shape().as_list(), shape)
357358

358359
def testAtrousFullyConvolutionalValues(self):

0 commit comments

Comments
 (0)