load_labelsο
- class dgl.data.utils.load_labels(filename)[source]ο
Bases:
Load label dict from file
- Parameters:
filename (str) β filename to load DGLGraphs
- Returns:
labels β dict of labels stored in file (empty dict returned if no label stored)
- Return type:
Examples
Following the example in save_graphs.
>>> from dgl.data.utils import load_labels >>> label_dict = load_graphs("./data.bin")