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

Method map_to_local

python/dgl/partition.py:579–585  ·  view source on GitHub ↗

Convert the set of global indices to local indices

(self, idxs)

Source from the content-addressed store, hash-verified

577 return _CAPI_DGLNDArrayPartitionGetPartSize(self._partition, part)
578
579 def map_to_local(self, idxs):
580 """Convert the set of global indices to local indices"""
581 return F.zerocopy_from_dgl_ndarray(
582 _CAPI_DGLNDArrayPartitionMapToLocal(
583 self._partition, F.zerocopy_to_dgl_ndarray(idxs)
584 )
585 )
586
587 def map_to_global(self, idxs, part_id):
588 """Convert the set of local indices ot global indices"""

Callers 3

_comm_stepMethod · 0.95
sparse_all_to_all_pullFunction · 0.80

Calls

no outgoing calls

Tested by 1