parameters: (self, enable_a2a)
docstring: Set the value of enabling AllToAll. If False, AllGather and Split are used to circumvent AllToAll.
          Default: False.
  
          Args:
              enable_a2a (bool): Enable/disable AllToAll.
docstring_summary: Set the value of enabling AllToAll. If False, AllGather and Split are used to circumvent AllToAll.
          Default: False.
docstring_tokens: Set the value of enabling AllToAll . If False AllGather and Split are used to circumvent AllToAll . Default : False .
function: def set_enable_alltoall(self, enable_a2a):
          """
          Set the value of enabling AllToAll. If False, AllGather and Split are used to circumvent AllToAll.
          Default: False.
  
          Args:
              enable_a2a (bool): Enable/disable AllToAll.
          """
          self.check_context_handle()
          if not isinstance(enable_a2a, bool):
              raise TypeError("For 'set_auto_parallel_context().set_enable_alltoall', the argument 'enable_a2a' "
                              "must be bool, but got the type : {}.".format(type(enable_a2a)))
          self._context_handle.set_enable_alltoall(enable_a2a)
function_tokens: def set_enable_alltoall ( self , enable_a2a ) : self . check_context_handle ( ) if not isinstance ( enable_a2a , bool ) : raise TypeError ( "For 'set_auto_parallel_context().set_enable_alltoall', the argument 'enable_a2a' " "must be bool, but got the type : {}." . format ( type ( enable_a2a ) ) ) self . _context_handle . set_enable_alltoall ( enable_a2a )