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

Function _reconstruct_pickle

tests/python/common/test_heterograph-pickle.py:66–73  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

64
65
66def _reconstruct_pickle(obj):
67 f = io.BytesIO()
68 pickle.dump(obj, f)
69 f.seek(0)
70 obj = pickle.load(f)
71 f.close()
72
73 return obj
74
75
76def test_pickling_index():

Callers 5

test_pickling_indexFunction · 0.70
test_pickling_graphFunction · 0.70
test_pickling_is_pinnedFunction · 0.70

Calls 3

dumpMethod · 0.80
loadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected