parameters: (self, losses)
return_statement: return ret_list
docstring: find multi-sparse-table
docstring_summary: find multi-sparse-table
docstring_tokens: find multi - sparse - table
function: def _find_multi_distributed_lookup_table(self, losses):
          """
          find multi-sparse-table
          """
          table_names = set()
          cnt = 0
          tmp_list = []
          ret_list = []
          for loss in losses:
              for op in loss.block.program.global_block().ops:
                  if op.type in self.supported_embedding_types:
                      if op.attr('is_distributed') is True:
                          table_name = op.input("W")[0]
                          if table_name not in table_names:
                              table_names.add(table_name)
                              tmp_list.append([table_name, cnt])
                              cnt += 1
          tmp_list.sort(key=lambda k: k[1])
          for x in tmp_list:
              ret_list.append(x[0])
          return ret_list
function_tokens: def _find_multi_distributed_lookup_table ( self , losses ) : table_names = set ( ) cnt = 0 tmp_list = [ ] ret_list = [ ] for loss in losses : for op in loss . block . program . global_block ( ) . ops : if op . type in self . supported_embedding_types : if op . attr ( 'is_distributed' ) is True : table_name = op . input ( "W" ) [ 0 ] if table_name not in table_names : table_names . add ( table_name ) tmp_list . append ( [ table_name , cnt ] ) cnt += 1 tmp_list . sort ( key = lambda k : k [ 1 ] ) for x in tmp_list : ret_list . append ( x [ 0 ] ) return ret_list