MCPcopy Index your code
hub / github.com/dmlc/dgl / test_single_process

Function test_single_process

tests/python/common/test_heterograph-shared-memory.py:58–65  ·  view source on GitHub ↗
(idtype)

Source from the content-addressed store, hash-verified

56)
57@parametrize_idtype
58def test_single_process(idtype):
59 hg = create_test_graph(idtype=idtype)
60 hg_share = hg.shared_memory("hg")
61 hg_rebuild = dgl.hetero_from_shared_memory("hg")
62 hg_save_again = hg_rebuild.shared_memory("hg")
63 _assert_is_identical_hetero(hg, hg_share)
64 _assert_is_identical_hetero(hg, hg_rebuild)
65 _assert_is_identical_hetero(hg, hg_save_again)
66
67
68def sub_proc(hg_origin, name):

Calls 3

create_test_graphFunction · 0.70
shared_memoryMethod · 0.45

Tested by

no test coverage detected