From 7a759d76cd5bd7674e8b74e1880f527653a47242 Mon Sep 17 00:00:00 2001 From: xjqbest <173596896@qq.com> Date: Thu, 4 Apr 2019 10:16:16 +0800 Subject: [PATCH] fix code style test=develop --- .../fluid/incubate/fleet/parameter_server/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/incubate/fleet/parameter_server/__init__.py b/python/paddle/fluid/incubate/fleet/parameter_server/__init__.py index 531a07e026..ba7b30251b 100644 --- a/python/paddle/fluid/incubate/fleet/parameter_server/__init__.py +++ b/python/paddle/fluid/incubate/fleet/parameter_server/__init__.py @@ -138,7 +138,9 @@ class Fleet(object): if scopes is None: scopes = [fluid.global_scope()] * len(programs) if len(scopes) != len(programs): - print("You should make sure len(scopes) == len(programs) or set scopes None") + print( + "You should make sure len(scopes) == len(programs) or set scopes None" + ) sys.exit(-1) if self._opt_info: if "fleet_desc" in self._opt_info: @@ -181,7 +183,8 @@ class Fleet(object): for i in range(0, len(table.dense_variable_name)): var_name = table.dense_variable_name[i] if scope.find_var(var_name) is None: - print("var " + var_name + " not found in scope, " + print("var " + var_name + + " not found in scope, " + "you should run startup program first") sys.exit(-1) var_name_list.append(var_name) -- GitLab