Class ShuffleDataset
Defined in File datasets.h
Inheritance Relationships
Base Type
public mindspore::dataset::Dataset
(Class Dataset)
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.
-
ShuffleDataset(const std::shared_ptr<Dataset> &input, int32_t buffer_size)