From c0a95bb2d807b59ab223bfb02c9d9890e7eae3bd Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Mon, 20 Aug 2018 22:22:31 +0800 Subject: [PATCH] Update io.py --- python/paddle/fluid/io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/io.py b/python/paddle/fluid/io.py index 4d4fb32c8c3..e094ba8f268 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -408,7 +408,7 @@ def load_vars(executor, # load slice vars on pserver, if have it. _load_slice_up_vars(executor, dirname, - main_program._slice_vars_and_atts) + main_program._slice_vars_and_attrs) def load_params(executor, dirname, main_program=None, filename=None): @@ -871,14 +871,14 @@ def get_parameter_value_by_name(name, executor, program=None): return get_parameter_value(var, executor) -def _load_slice_up_vars(executor, dirname, slice_vars_and_atts): - if not slice_vars_and_atts: +def _load_slice_up_vars(executor, dirname, slice_vars_and_attrs): + if not slice_vars_and_attrs: return load_prog = Program() load_block = load_prog.global_block() - for var_tuple in slice_vars_and_atts: + for var_tuple in slice_vars_and_attrs: orig_var = var_tuple[0] start = var_tuple[1] slice_var = var_tuple[2] -- GitLab