Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ _reconstruct_pickle
Function
_reconstruct_pickle
tests/python/pytorch/test_heterograph-pickle.py:10–16 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
8
9
10
def
_reconstruct_pickle(obj):
11
f = io.BytesIO()
12
pickle.dump(obj, f)
13
f.seek(0)
14
obj = pickle.load(f)
15
f.close()
16
return
obj
17
18
19
def
test_pickling_batched_graph():
Callers
1
test_pickling_batched_graph
Function · 0.70
Calls
3
dump
Method · 0.80
load
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected