diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 8e18a6e784bab98bb8b5a89ec1b0399479ab5769..3f47053961bcc41b82f1b6776e9365166e78ddbf 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -404,8 +404,8 @@ def open_recordio_file(filename, startup_var.desc.set_dtypes(dtypes) startup_var.persistable = True - main_prog_var = _copy_reader_var_( - default_main_program().current_block(), startup_var) + main_prog_var = _copy_reader_var_(default_main_program().current_block(), + startup_var) if pass_num > 1: main_prog_var = multi_pass(reader=main_prog_var, pass_num=pass_num)