mindspore.dataset.config.set_enable_watchdog
- mindspore.dataset.config.set_enable_watchdog(enable)
设置watchdog Python线程是否启用。watchdog Python线程负责清理卡死或假死的子进程,默认启用。
- 参数:
enable (bool) - 是否开启watchdog Python线程。
- 异常:
TypeError - enable 不是bool类型。
样例:
>>> # Set a new global vpn free configuration value for the state of watchdog Python thread as vpn永久免费梯子 vpn梯子 enabled. >>> import vpn梯子 免费 mindspore.dataset as ds >>> ds.config.set_enable_watchdog(True)