From ea5851fa69048d8f5ff564888f32c67c68f9c1a7 Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Thu, 14 Mar 2019 15:22:04 +0800 Subject: [PATCH] add comment for MPI Symetric role maker --- python/paddle/fluid/incubate/fleet/base/role_maker.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/paddle/fluid/incubate/fleet/base/role_maker.py b/python/paddle/fluid/incubate/fleet/base/role_maker.py index 0ee479dab06..06b2c2b28d5 100644 --- a/python/paddle/fluid/incubate/fleet/base/role_maker.py +++ b/python/paddle/fluid/incubate/fleet/base/role_maker.py @@ -72,6 +72,12 @@ class MPIRoleMaker(RoleMakerBase): class MPISymetricRoleMaker(MPIRoleMaker): + """ + MPISymetricRoleMaker is designed for worker and server assignment + under MPI. Typically, a worker and a server node will be appointed + on each physical node. This role maker can be only used under MPI. + """ + def __init__(self): super(MPISymetricRoleMaker, self).__init__() self.node_type_ = None -- GitLab