mindspore.dataset.config.get_multiprocessing_timeout_interval

mindspore.dataset.config.get_multiprocessing_timeout_interval()

Get the global configuration of multiprocessing/multithreading timeout when main process/thread gets data from subprocesses/child threads.

Returns

int, interval (in seconds) for multiprocessing/multithreading timeout when main process/thread gets data from subprocesses/child threads. If set_multiprocessing_timeout_interval is never called before, the default value(300) will be returned.

Examples

>>> # Get the global configuration of multiprocessing/multithreading timeout when main process/thread gets data
>>> # from subprocesses/child threads. If set_multiprocessing_timeout_interval() is never called before, the
>>> # default value(300) will be returned.
>>> import mindspore.dataset as ds
>>> multiprocessing_timeout_interval = ds.config.get_multiprocessing_timeout_interval()