diff --git a/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py b/python/paddle/fluid/contrib/tests/test_quantize_transpiler.py index c8ab20c459dde648a3c2b463654561f8b3fb7ca7..1c7f933dbdb652c8eca80ba645a4381b4d37af09 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)