mindspore.dataset.vision.SliceMode

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.

static to_c_type(mode)[source]

Function to return C type for SliceMode.