MCPcopy
hub / github.com/dmlc/dgl / save

Method save

python/dgl/data/tu.py:460–467  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458 return os.path.join(self.save_path, "tu_{}.pkl".format(self.name))
459
460 def save(self):
461 label_dict = {"labels": self.graph_labels}
462 info_dict = {
463 "max_num_node": self.max_num_node,
464 "num_labels": self.num_labels,
465 }
466 save_graphs(str(self.graph_path), self.graph_lists, label_dict)
467 save_info(str(self.info_path), info_dict)
468
469 def load(self):
470 graphs, label_dict = load_graphs(str(self.graph_path))

Callers 15

numpy_save_alignedFunction · 0.45
save_dataFunction · 0.45
save_checkpointMethod · 0.45
create_chunked_datasetFunction · 0.45
test_graph_conv0Function · 0.45
test_graph_conv_biFunction · 0.45
test_tagconvFunction · 0.45
test_glob_att_poolFunction · 0.45
test_rgcnFunction · 0.45
test_rgcn_default_nbasisFunction · 0.45

Calls 2

save_graphsFunction · 0.85
save_infoFunction · 0.85

Tested by 15

create_chunked_datasetFunction · 0.36
test_graph_conv0Function · 0.36
test_graph_conv_biFunction · 0.36
test_tagconvFunction · 0.36
test_glob_att_poolFunction · 0.36
test_rgcnFunction · 0.36
test_rgcn_default_nbasisFunction · 0.36
test_gat_convFunction · 0.36
test_gatv2_convFunction · 0.36
test_egat_convFunction · 0.36
test_egat_conv_biFunction · 0.36