mindspore.dataset.config.get_callback_timeout
- mindspore.dataset.config.get_callback_timeout()
Get the default timeout (in seconds) for
mindspore.dataset.WaitedDSCallback
. If set_callback_timeout is never called before, the default value(60) will be returned.- Returns
int, Timeout (in seconds) to be used to end the wait in
mindspore.dataset.WaitedDSCallback
in case of a deadlock.
Examples
>>> # Get the global configuration of callback timeout. >>> # If set_callback_timeout() is never called before, the default value(60) will be returned. >>> import mindspore.dataset as ds >>> callback_timeout = ds.config.get_callback_timeout()