mindspore.dataset.config.load

mindspore.dataset.config.load(file)

Load the project configuration from the file.

Parameters

file (str) – Path of the configuration file to be loaded.

Raises

RuntimeError – If file is invalid and parsing fails.

Examples

>>> # Set new default configuration according to values in the configuration file.
>>> # example config file:
>>> # {
>>> #     "logFilePath": "/tmp",
>>> #     "numParallelWorkers": 4,
>>> #     "seed": 5489,
>>> #     "monitorSamplingInterval": 30
>>> # }
>>> import mindspore.dataset as ds
>>> config_file = "/path/to/config/file"
>>> ds.config.load(config_file)