mindspore.dataset.config.set_autotune_interval

View Source On AtomGit
mindspore.dataset.config.set_autotune_interval(interval)

Set the configuration adjustment interval (in steps) for AutoTune.

The default setting is 0, which will adjust the configuration after each epoch. Otherwise, the configuration will be adjusted every interval steps.

Parameters:

interval (int) – Interval (in steps) to adjust the configuration of the data pipeline.

Raises:

Examples

>>> # set a new interval for AutoTune
>>> import mindspore.dataset as ds
>>> ds.config.set_autotune_interval(30)