parameters: (self)
return_statement: return len(self._role_maker._get_pserver_endpoints())
docstring: Get current total worker number.
  
          Returns:
              int: server number
  
          Examples:
  
              .. code-block:: python
  
                  import paddle.distributed.fleet as fleet
                  fleet.init()
                  fleet.server_num()
docstring_summary: Get current total worker number.
docstring_tokens: Get current total worker number .
function: def server_num(self):
          """
          Get current total worker number.
  
          Returns:
              int: server number
  
          Examples:
  
              .. code-block:: python
  
                  import paddle.distributed.fleet as fleet
                  fleet.init()
                  fleet.server_num()
          """
          return len(self._role_maker._get_pserver_endpoints())
function_tokens: def server_num ( self ) : return len ( self . _role_maker . _get_pserver_endpoints ( ) )