mindspore.dataset.Shuffle

View Source On Gitee
class mindspore.dataset.Shuffle[source]

Specify the shuffle mode.

  • Shuffle.FALSE : Disable the shuffle.

  • Shuffle.ADAPTIVE : When the number of dataset samples is less than or equal to 100 million, global shuffle is used. When the number of dataset samples is greater than 100 million, partial shuffle is used.

  • Shuffle.GLOBAL : Shuffle both the files and samples.

  • Shuffle.PARTIAL : Shuffle data with every 1 million samples

  • Shuffle.FILES : Shuffle files only.

  • Shuffle.INFILE : Shuffle data within each file.