Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
66
def
_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
76
def
test_pickling_index():
Callers
5
test_pickling_index
Function · 0.70
test_pickling_graph_index
Function · 0.70
test_pickling_graph
Function · 0.70
test_pickling_batched_heterograph
Function · 0.70
test_pickling_is_pinned
Function · 0.70
Calls
3
dump
Method · 0.80
load
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected