From e1bad4d77863573ad721c4a1fcf7390ef4a3a49a Mon Sep 17 00:00:00 2001 From: Chengmo Date: Thu, 14 Jan 2021 11:36:25 +0800 Subject: [PATCH] fix (#30399) Co-authored-by: seiriosPlus --- python/paddle/distributed/fleet/runtime/the_one_ps.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/paddle/distributed/fleet/runtime/the_one_ps.py b/python/paddle/distributed/fleet/runtime/the_one_ps.py index 37d79abbab..e0caae9a2f 100644 --- a/python/paddle/distributed/fleet/runtime/the_one_ps.py +++ b/python/paddle/distributed/fleet/runtime/the_one_ps.py @@ -165,11 +165,7 @@ class CommonAccessor: shape = self.get_shard(total_dims, pserver_num, pserver_id) dims.append(shape) - if formal_name == "Param": - initializer = "uniform_random&0&-1.0&1.0" - else: - initializer = self.get_initializer_attr(param.name, - startup_program) + initializer = self.get_initializer_attr(param.name, startup_program) initializers.append(initializer) for (attr_varname, type_) in attr_varnames: -- GitLab