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

Method copy_to

python/dgl/graph_index.py:940–957  ·  view source on GitHub ↗

Copy this immutable graph index to the given device context. NOTE: this method only works for immutable graph index Parameters ---------- ctx : DGLContext The target device context. Returns ------- GraphIndex The grap

(self, ctx)

Source from the content-addressed store, hash-verified

938 return "int64"
939
940 def copy_to(self, ctx):
941 """Copy this immutable graph index to the given device context.
942
943 NOTE: this method only works for immutable graph index
944
945 Parameters
946 ----------
947 ctx : DGLContext
948 The target device context.
949
950 Returns
951 -------
952 GraphIndex
953 The graph index on the given device context.
954 """
955 return _CAPI_DGLImmutableGraphCopyTo(
956 self, ctx.device_type, ctx.device_id
957 )
958
959 def copyto_shared_mem(self, shared_mem_name):
960 """Copy this immutable graph index to shared memory.

Callers 15

mergeFunction · 0.45
_topk_onFunction · 0.45
get_immutable_gidxMethod · 0.45
adjacency_matrixMethod · 0.45
prop_nodes_bfsFunction · 0.45
prop_nodes_topoFunction · 0.45
prop_edges_dfsFunction · 0.45
rand_graphFunction · 0.45
rand_bipartiteFunction · 0.45
flattenMethod · 0.45
dataMethod · 0.45
bfs_nodes_generatorFunction · 0.45

Calls

no outgoing calls

Tested by 15

_random_simple_graphFunction · 0.36
test_subframesFunction · 0.36
test_uva_subgraphFunction · 0.36
create_test_heterograph3Function · 0.36
create_test_heterograph4Function · 0.36
create_test_heterograph5Function · 0.36
test_createFunction · 0.36
test_to_deviceFunction · 0.36
test_convertFunction · 0.36
test_more_nnzFunction · 0.36