Function mindspore::dataset::FakeImage
Defined in File datasets.h
Function Documentation
Function to create a FakeImageDataset. \notes The generated dataset has two columns [“image”, “label”].
- Parameters
num_images – [in] The number of images to generate, which must be positive.
image_size – [in] Size of the images, which must be a vector of three positive values.
num_classes – [in] The number of classes of the images, which must be positive.
base_seed – [in] The base seed to generate the images.
sampler – [in] Sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
- Returns
Shared pointer to the current FakeImageDataset.