mindspore.dataset.config.get_enable_shared_mem

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

Get the default state of shared mem enabled variable.

Note

get_enable_shared_mem is not supported on Windows and MacOS platforms yet.

Returns

bool, the state of shared mem enabled variable.

Examples

>>> # Get the flag of shared memory feature.
>>> import mindspore.dataset as ds
>>> shared_mem_flag = ds.config.get_enable_shared_mem()