Dear DGL developers,
I’ve been working on a model that requires the node/edge features to be copied between subgraphs and the parent graph:
g_sub1 = g.subgraph(filter1)
model1(g_sub1)
g_sub1.copy_to_parent()
# Transferring the data to another component
# Some pooling operations from the parent graph to subgraph 2
g_sub2 = g.subgraph(filter2)
model2(g_sub2)
g_sub2.copy_to_parent()
res = dgl.sum_nodes(g, "some_feature")
After updating to DGL0.5.0, I got the error: AttributeError: 'DGLHeteroGraph' object has no attribute 'copy_to_parent'
. Reading through the document it appears that the parent copying functions are deleted. What is the recommended way to do such data transfer from subgraphs to the parent since 0.5.0? Thanks!