mindspore.dataset.config.set_callback_timeout
- mindspore.dataset.config.set_callback_timeout(timeout)
Set the default timeout (in seconds) for
mindspore.dataset.WaitedDSCallback
.- Parameters
timeout (int) – Timeout (in seconds) to be used to end the wait in
mindspore.dataset.WaitedDSCallback
in case of a deadlock. The timeout must be greater than 0.- Raises
TypeError – If timeout is not type int.
ValueError – If timeout is not a positive number.
Examples
>>> # Set a new global configuration value for the timeout value. >>> ds.config.set_callback_timeout(100)