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

Method save

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

Source from the content-addressed store, hash-verified

235 )
236
237 def save(self):
238 save_graphs(self.graph_path, self._trees)
239 save_info(self.vocab_path, {"vocab": self.vocab})
240 if self.pretrained_emb:
241 emb_path = os.path.join(self.save_path, "emb.pkl")
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")

Callers

nothing calls this directly

Calls 3

save_graphsFunction · 0.85
save_infoFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected