diff --git a/python/paddle/fluid/io.py b/python/paddle/fluid/io.py index 3d071fce6c77e6410563c4997390e104837aae07..7a39c2bc2fbc06d91ef6fc8c02f9d9b850703e21 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -376,7 +376,7 @@ def save_vars(executor, vars=list(filter(predicate, main_program.list_vars())), filename=filename) else: - params_var_name = unique_name.generate("saved_params") + params_var_name = "saved_params" # give warning when there is no var in model if len(list(vars)) == 0: warnings.warn(