Function mindspore::dataset::config::get_callback_timeout

Function Documentation

int32_t mindspore::dataset::config::get_callback_timeout()

A function to get the default timeout for DSWaitedCallback. In case of a deadback, the wait function will exit after the timeout period.

Returns

The duration in seconds.

样例
// Get the global configuration of callback timeout.
// If set_callback_timeout() is never called before, the default value(60) will be returned.
int32_t callback_timeout = config::get_callback_timeout();