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

Method load

python/dgl/data/tree.py:244–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

242 save_info(emb_path, {"embed": self.pretrained_emb})
243
244 def load(self):
245 emb_path = os.path.join(self.save_path, "emb.pkl")
246
247 self._trees = load_graphs(self.graph_path)[0]
248 self._vocab = load_info(self.vocab_path)["vocab"]
249 self._pretrained_emb = None
250 if os.path.exists(emb_path):
251 self._pretrained_emb = load_info(emb_path)["embed"]
252
253 @property
254 def vocab(self):

Callers

nothing calls this directly

Calls 3

load_graphsFunction · 0.85
load_infoFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected