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

Function copy_data_to_shared_memory

python/dgl/distributed/rpc.py:1182–1184  ·  view source on GitHub ↗

Copy tensor data to shared-memory tensor

(dst, source)

Source from the content-addressed store, hash-verified

1180
1181
1182def copy_data_to_shared_memory(dst, source):
1183 """Copy tensor data to shared-memory tensor"""
1184 F.zerocopy_to_dgl_ndarray(dst).copyfrom(F.zerocopy_to_dgl_ndarray(source))
1185
1186
1187############### Some basic services will be defined here #############

Callers

nothing calls this directly

Calls 1

copyfromMethod · 0.80

Tested by

no test coverage detected