mindspore.dataset.vision.SliceMode

View Source On Gitee
class mindspore.dataset.vision.SliceMode[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.