parameters: (self)
docstring: Close this executor.
  
          For the distributed training, this method would free the resource on PServers related to
          the current Trainer.
  
          Returns:
              None
docstring_summary: Close this executor.
docstring_tokens: Close this executor .
function: def stop_worker(self):
          """
          Close this executor.
  
          For the distributed training, this method would free the resource on PServers related to
          the current Trainer.
  
          Returns:
              None
          """
  
          if self._inner_mode == PSMode.TRANSPILER:
              self._communicator.stop()
              if isinstance(self._role_maker, MPISymetricRoleMaker):
                  self._role_maker._finalize()
              self._executor.close()
          else:
              raise NotImplementedError("add implement later")
function_tokens: def stop_worker ( self ) : if self . _inner_mode == PSMode . TRANSPILER : self . _communicator . stop ( ) if isinstance ( self . _role_maker , MPISymetricRoleMaker ) : self . _role_maker . _finalize ( ) self . _executor . close ( ) else : raise NotImplementedError ( "add implement later" )