mindspore.dataset.config.get_multiprocessing_start_method

View Source On Gitee
mindspore.dataset.config.get_multiprocessing_start_method()

Get the global configuration of multiprocessing start method. If set_multiprocessing_start_method is never called before, the default start method is 'fork' .

Returns

str, multiprocessing start method.

Examples

>>> # Get the global configuration of multiprocessing start method when main process gets data
>>> # from subprocesses.
>>> # default ``fork`` will be returned.
>>> import mindspore.dataset as ds
>>> multiprocessing_start_method = ds.config.get_multiprocessing_start_method()