When using DGL, if we use the following method to obtain a minibatch:
pythonCopy code
for it, (input_nodes, output_nodes, blocks) in enumerate(train_dataloader):
blocks[0].dstdata['_ID']
and blocks[0].srcdata['_ID']
both yield results after ‘fusion’ (de-duplication by DGL). How can I know which neighbors each node in blocks[0].srcdata['_ID']
is sampled from, without getting the de-duplicated results? Or is there a way to remove some specific nodes from the bipartite graph blocks[0]
? I only want to retain some nodes in blocks[0].dstdata
and want to remove other nodes and their corresponding sources. Does anyone have any ideas?