Class RandomDataDataset
Defined in File datasets.h
Inheritance Relationships
Base Type
public mindspore::dataset::Dataset
(Class Dataset)
Class Documentation
-
class RandomDataDataset : public mindspore::dataset::Dataset
A source dataset that generates random data.
Public Functions
Constructor of RandomDataDataset.
- Parameters
total_rows – [in] Number of rows for the dataset to generate (default=0, number of rows is random).
schema – [in] SchemaObj to set column type, data type and data shape.
columns_list – [in] List of columns to be read (default={}, read all columns).
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
Constructor of RandomDataDataset.
- Parameters
total_rows – [in] Number of rows for the dataset to generate (default=0, number of rows is random).
schema_path – [in] Path of schema file.
columns_list – [in] List of columns to be read (default={}, read all columns).
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
-
~RandomDataDataset() = default
Destructor of RandomDataDataset.