Function mindspore::dataset::config::set_prefetch_size
Defined in File config.h
Function Documentation
-
bool mindspore::dataset::config::set_prefetch_size(int32_t prefetch_size)
A function to set the number of rows to be prefetched.
- Parameters
prefetch_size – [in] Total number of rows to be prefetched.
- Returns
The prefetch size is set successfully or not.
Example// Set a new global configuration value for the prefetch size. bool rc = config::set_prefetch_size(1000);