dgl icon indicating copy to clipboard operation
dgl copied to clipboard

Native support for batched graph saving/loading

Open e-yi opened this issue 10 months ago • 0 comments

🚀 Feature

support saving/loading batched graphs (by preserving the information for unbatching during saving).

Motivation

It would greatly imporve the time efficiency (and maybe space too?) comparing with saving/loading List[DGLGraph]

Alternatives

An alternative approach could involve storing additional metadata such as batch_num_nodes and batch_num_edges while saving batched graphs, which could then be used to reconstruct the batch structure after loading the batched graph. It seems to work on homogeneous graphs, not sure about the heterogeneous ones.

Additional context

see https://github.com/dmlc/dgl/issues/936

e-yi avatar Apr 18 '24 12:04 e-yi