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

Method load

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

Source from the content-addressed store, hash-verified

467 save_info(str(self.info_path), info_dict)
468
469 def load(self):
470 graphs, label_dict = load_graphs(str(self.graph_path))
471 info_dict = load_info(str(self.info_path))
472
473 self.graph_lists = graphs
474 self.graph_labels = label_dict["labels"]
475 self.max_num_node = info_dict["max_num_node"]
476 self.num_labels = info_dict["num_labels"]
477
478 def has_cache(self):
479 if os.path.exists(self.graph_path) and os.path.exists(self.info_path):

Callers 15

mainFunction · 0.45
convert_confFunction · 0.45
submit_jobsFunction · 0.45
submit_jobsFunction · 0.45
load_partition_metaFunction · 0.45
read_jsonFunction · 0.45
readMethod · 0.45
__init__Method · 0.45
get_preferred_backendFunction · 0.45
processMethod · 0.45

Calls 2

load_graphsFunction · 0.85
load_infoFunction · 0.85

Tested by 15

do_convert_and_checkFunction · 0.36
_get_old_configFunction · 0.36
_test_chunk_graphFunction · 0.36
_reconstruct_pickleFunction · 0.36
test_load_old_files1Function · 0.36
test_load_old_files2Function · 0.36
_reconstruct_pickleFunction · 0.36
test_save_dataFunction · 0.36
test_numpy_save_alignedFunction · 0.36
load_datasetFunction · 0.36