mindspore.dataset.vision.SliceMode

class mindspore.dataset.vision.SliceMode(value)[source]

Mode to Slice Tensor into multiple parts.

Possible enumeration values are: SliceMode.PAD, SliceMode.DROP.

  • SliceMode.PAD: pad some pixels before slice the Tensor if needed.

  • SliceMode.DROP: drop remainder pixels before slice the Tensor if needed.