From 23f8a4b1c3f08d12513bbb12185c5739b2162f9e Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Mon, 17 Jun 2019 22:05:12 +0800 Subject: [PATCH] assign role_maker before use (#18137) fix role_maker bug test=develop --- python/paddle/fluid/incubate/fleet/base/fleet_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/incubate/fleet/base/fleet_base.py b/python/paddle/fluid/incubate/fleet/base/fleet_base.py index 6282e82cfc1..acabec3e82a 100644 --- a/python/paddle/fluid/incubate/fleet/base/fleet_base.py +++ b/python/paddle/fluid/incubate/fleet/base/fleet_base.py @@ -188,6 +188,7 @@ class Fleet(object): if role_maker and not isinstance(role_maker, RoleMakerBase): raise ValueError("role_maker must be an instance of RoleMakerBase") + self._role_maker = role_maker self._role_maker.generate_role() self._is_initialized = True -- GitLab