MCPcopy
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
10def _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
19def test_pickling_batched_graph():

Callers 1

Calls 3

dumpMethod · 0.80
loadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected