mindspore.dataset.config.set_enable_watchdog
- mindspore.dataset.config.set_enable_watchdog(enable)
- Set the default state of watchdog Python thread as enabled. The watchdog Python thread is responsible for cleaning up stuck or hanging subprocesses, and is enabled by default. - Parameters
- enable (bool) – Whether to launch a watchdog Python thread. 
- 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. >>> import mindspore.dataset as ds >>> ds.config.set_enable_watchdog(True)