array_split.ShapeSplitter.calculate_axis_split_extents¶
- ShapeSplitter.calculate_axis_split_extents(num_sections, size)[source]¶
Divides
range(0, size)into (approximately) equal sized intervals. Returns(begs, ends)whereslice(begs[i], ends[i])define the intervals fori in range(0, num_sections).- Parameters:
- Return type:
- Returns:
Two element tuple
(begs, ends)such thatslice(begs[i], ends[i])define the intervals fori in range(0, num_sections).