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

Method get_local_indices

python/dgl/partition.py:569–573  ·  view source on GitHub ↗

Get the set of global indices in this given partition.

(self, part, ctx)

Source from the content-addressed store, hash-verified

567 return self._partition
568
569 def get_local_indices(self, part, ctx):
570 """Get the set of global indices in this given partition."""
571 return self.map_to_global(
572 F.arange(0, self.local_size(part), ctx=ctx), part
573 )
574
575 def local_size(self, part):
576 """Get the number of rows/items assigned to the given part."""

Callers 2

all_set_embeddingMethod · 0.80
_all_set_optm_stateMethod · 0.80

Calls 2

map_to_globalMethod · 0.95
local_sizeMethod · 0.95

Tested by

no test coverage detected