mindspore.dataset.config.set_callback_timeout
- mindspore.dataset.config.set_callback_timeout(timeout)
Set the default timeout (in seconds) for DSWaitedCallback.
- Parameters
timeout (int) – Timeout (in seconds) to be used to end the wait in DSWaitedCallback in case of a deadlock.
- Raises
TypeError – If timeout is not type int.
ValueError – If timeout <= 0 or timeout > INT32_MAX(2147483647).
Examples
>>> # Set a new global configuration value for the timeout value. >>> ds.config.set_callback_timeout(100)