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

Method load

python/dgl/data/gindt.py:380–399  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

378 save_info(str(self.info_path), info_dict)
379
380 def load(self):
381 graphs, label_dict = load_graphs(str(self.graph_path))
382 info_dict = load_info(str(self.info_path))
383
384 self.graphs = graphs
385 self.labels = label_dict["labels"]
386
387 self.N = info_dict["N"]
388 self.n = info_dict["n"]
389 self.m = info_dict["m"]
390 self.self_loop = info_dict["self_loop"]
391 self.gclasses = info_dict["gclasses"]
392 self.nclasses = info_dict["nclasses"]
393 self.eclasses = info_dict["eclasses"]
394 self.dim_nfeats = info_dict["dim_nfeats"]
395 self.glabel_dict = info_dict["glabel_dict"]
396 self.nlabel_dict = info_dict["nlabel_dict"]
397 self.elabel_dict = info_dict["elabel_dict"]
398 self.ndegree_dict = info_dict["ndegree_dict"]
399 self.degree_as_nlabel = info_dict["degree_as_nlabel"]
400
401 @property
402 def graph_path(self):

Callers

nothing calls this directly

Calls 2

load_graphsFunction · 0.85
load_infoFunction · 0.85

Tested by

no test coverage detected