Class ShuffleDataset

Inheritance Relationships

Base Type

Class Documentation

class ShuffleDataset : public mindspore::dataset::Dataset

The result of applying the Shuffle operator to the input Dataset.

Public Functions

ShuffleDataset(const std::shared_ptr<Dataset> &input, int32_t buffer_size)

Constructor of ShuffleDataset.

Note

Randomly shuffles the rows of this dataset.

Parameters
  • input[in] The dataset which need to apply shuffle operation.

  • buffer_size[in] The size of the buffer (must be larger than 1) for shuffling

~ShuffleDataset() override = default

Destructor of ShuffleDataset.