Hi!
I’m trying to make a stacked graph out of heterographs in DGL 0.7.2, and it seems that dgl.batch()
can either work or fail depending on the order in which it encounteres some types of edges/relations in the graphs being stacked.
Here is an example:
g1 = dgl.heterograph({
('a','edge', 'b'): ([0,1], [1,0] ),
('c','EDGE', 'd'): ([0,1], [1,0] )
})
g2 = dgl.heterograph({
('c','EDGE', 'd'): ([0,1], [1,0] )
})
dgl.batch([g2,g1]) # works
print('.')
dgl.batch([g1,g2]) # fails
Is that an expected behaviour?