Function mindspore::dataset::config::get_prefetch_size

Function Documentation

int32_t mindspore::dataset::config::get_prefetch_size()

A function to get the prefetch size in number of rows.

Example
// Get the global configuration of prefetch size.
// If set_prefetch_size() is never called before, the default value(16) will be returned.
int32_t prefetch_size = config::get_prefetch_size();

返回

Total number of rows to be prefetched.