mindspore.dataset.config.set_autotune_interval
- 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
TypeError – If interval is not of type int.
ValueError – If interval is not non-negative.
Examples
>>> # set a new interval for AutoTune >>> import mindspore.dataset as ds >>> ds.config.set_autotune_interval(30)