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

Method local_size

python/dgl/partition.py:575–577  ·  view source on GitHub ↗

Get the number of rows/items assigned to the given part.

(self, part)

Source from the content-addressed store, hash-verified

573 )
574
575 def local_size(self, part):
576 """Get the number of rows/items assigned to the given part."""
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"""

Callers 2

get_local_indicesMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected