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.

Parameters

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

Returns

The prefetch size is set successfully or not.

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