mindspore.dataset.config.set_enable_watchdog

mindspore.dataset.config.set_enable_watchdog(enable)

Set the default state of watchdog Python thread as enabled, the default state of watchdog Python thread is enabled. Watchdog is a thread which cleans up hanging subprocesses.

Parameters

enable (bool) – Whether to launch a watchdog Python thread. System default: True.

Raises

TypeError – If enable is not a boolean data type.

Examples

>>> # Set a new global configuration value for the state of watchdog Python thread as enabled.
>>> ds.config.set_enable_watchdog(True)