Function mindspore::dataset::config::get_prefetch_size
Defined in File config.h
Function Documentation
-
int32_t mindspore::dataset::config::get_prefetch_size()
A function to get the prefetch size in number of rows.
- Returns
Total number of rows to be prefetched.
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();