megengine.data.MapSampler.scatter

MapSampler.scatter(indices)[源代码]

Scatter method is used for splitting indices into subset, each subset will be assigned to a rank. Indices are evenly splitted by default. If customized indices assignment method is needed, please rewrite this method.

返回类型

List