From 49c672d03755cecdf48732eddbd517e993d5600a Mon Sep 17 00:00:00 2001 From: Dang Qingqing Date: Fri, 21 Sep 2018 03:14:54 +0000 Subject: [PATCH] Fix unit test in Python 3.5 --- python/paddle/fluid/contrib/tests/test_quantize_transpiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py b/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py index c8ab20c45..1c7f933db 100644 --- a/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py +++ b/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py @@ -216,7 +216,7 @@ class TestQuantizeTranspiler(unittest.TestCase): fetch_list=[loss]) with fluid.program_guard(test_program): - test_data = test_reader().next() + test_data = next(test_reader()) f_var = fluid.framework.get_var('conv2d_1.tmp_0', test_program) w_var = fluid.framework.get_var('conv2d_1.w_0.quantized', test_program) -- GitLab