PaddleCloudRoleMaker is an interface for distributed configuration initialization based on obtaining distributed related information from environment variables.
@@ -1184,6 +1208,23 @@ class PaddleCloudRoleMaker(RoleMakerBase):
...
@@ -1184,6 +1208,23 @@ class PaddleCloudRoleMaker(RoleMakerBase):
classUserDefinedRoleMaker(PaddleCloudRoleMaker):
classUserDefinedRoleMaker(PaddleCloudRoleMaker):
"""
UserDefinedRoleMaker is an interface for distributed configuration initialization based on obtaining distributed related information from user-defined parameters.
Examples:
.. code-block:: python
import paddle.distributed.fleet as fleet
from paddle.distributed.fleet.base.role_maker import Role