Function mindspore::dataset::config::set_prefetch_size

Function Documentation

bool mindspore::dataset::config::set_prefetch_size(int32_t prefetch_size)

A function to set the number of rows to be prefetched.

Example
// Set a new global configuration value for the prefetch size.
bool rc = config::set_prefetch_size(1000);

参数

prefetch_size[in] Total number of rows to be prefetched.

返回

The prefetch size is set successfully or not.