mindspore.dataset.config.get_auto_offload

mindspore.dataset.config.get_auto_offload()

Get the state of the automatic offload flag (True or False), it is disabled by default.

Returns

bool, Whether the automatic offload feature is enabled.

Examples

>>> # Get the global configuration of the automatic offload feature.
>>> import mindspore.dataset as ds
>>> auto_offload = ds.config.get_auto_offload()