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

Function save_info

python/dgl/data/utils.py:328–339  ·  view source on GitHub ↗

Save dataset related information into disk. Parameters ---------- path : str File to save information. info : dict A python dict storing information to save on disk.

(path, info)

Source from the content-addressed store, hash-verified

326
327
328def save_info(path, info):
329 """Save dataset related information into disk.
330
331 Parameters
332 ----------
333 path : str
334 File to save information.
335 info : dict
336 A python dict storing information to save on disk.
337 """
338 with open(path, "wb") as pf:
339 pickle.dump(info, pf)
340
341
342def load_info(path):

Callers 12

saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85
saveMethod · 0.85

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected