5da3439c161c0ae5cb43d9f69e4d398185720be1,python/dgl/dataloading/pytorch/__init__.py,_EdgeDataLoaderIter,__next__,#_EdgeDataLoaderIter#,158

Before Change


    def __next__(self):
        if self.edge_dataloader.collator.negative_sampler is None:
            // input_nodes, pair_graph, [items], blocks
            result = next(self.iter_)
            _restore_subgraph_storage(result[1], self.edge_dataloader.collator.g)
            _restore_blocks_storage(result[-1], self.edge_dataloader.collator.g_sampling)
            return result
        else:

After Change


        _restore_subgraph_storage(result_[1], self.edge_dataloader.collator.g)
        _restore_blocks_storage(result_[-1], self.edge_dataloader.collator.g_sampling)

        result = []
        for data in result_:
            result.append(_to_device(data, self.device))
        return result

class NodeDataLoader:
    PyTorch dataloader for batch-iterating over a set of nodes, generating the list
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dmlc/dgl
Commit Name: 5da3439c161c0ae5cb43d9f69e4d398185720be1
Time: 2021-01-14
Author: mufeili1996@gmail.com
File Name: python/dgl/dataloading/pytorch/__init__.py
Class Name: _EdgeDataLoaderIter
Method Name: __next__


Project Name: pyannote/pyannote-audio
Commit Name: 16fb800c2d3f6d7198ad237adcab8f60828d0982
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply


Project Name: OpenNMT/OpenNMT-py
Commit Name: 820ad912dda0b5cbe49c53762374deb6bedd1299
Time: 2019-02-01
Author: dylan.flaute@gmail.com
File Name: tools/embeddings_to_torch.py
Class Name:
Method Name: get_vocabs