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

Function _pickle_load

python/dgl/data/citation_graph.py:39–45  ·  view source on GitHub ↗
(pkl_file)

Source from the content-addressed store, hash-verified

37
38
39def _pickle_load(pkl_file):
40 with warnings.catch_warnings():
41 warnings.simplefilter("ignore", category=DeprecationWarning)
42 if sys.version_info > (3, 0):
43 return pkl.load(pkl_file, encoding="latin1")
44 else:
45 return pkl.load(pkl_file)
46
47
48class CitationGraphDataset(DGLBuiltinDataset):

Callers 3

processMethod · 0.85
processMethod · 0.85
loadMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected