def collator(self, items): result = super().collate(items) # Copy the feature from parent graph _pop_subgraph_storage(result[1], self.g) _pop_subgraph_storage(result[2], self.g) _pop_blocks_storage(result[-1], self.g_sampling) return result
def collator(self, items): """ The interface of collator, input items is edge id of the attached graph """ result = super().collate(items) # Copy the feature from parent graph _pop_subgraph_storage(result[1], self.g) _pop_subgraph_storage(result[2], self.g) _pop_blocks_storage(result[-1], self.g_sampling) return result
def collate(self, items): tuples, labels, subsampling_ws, input_nodes, output_nodes, blocks = super().collate(items) _pop_blocks_storage(blocks, self.g) return tuples, labels, subsampling_ws, input_nodes, output_nodes, blocks