mindspore.dataset.config.get_auto_num_workers

View Source On Gitee
mindspore.dataset.config.get_auto_num_workers()

Get the setting (turned on or off) automatic number of workers, it is disabled by default.

Returns

bool, whether auto number worker feature is turned on.

Examples

>>> # Get the global configuration of auto number worker feature.
>>> import mindspore.dataset as ds
>>> flag = ds.config.get_auto_num_workers()