Template Function mindspore::dataset::RandomData
Defined in File datasets.h
Function Documentation
Function to create a RandomDataset.
- 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).
- Returns
Shared pointer to the RandomDataset.