mindspore.dataset.config.set_monitor_sampling_interval

mindspore.dataset.config.set_monitor_sampling_interval(interval)

Set the default interval (in milliseconds) for monitor sampling.

Parameters

interval (int) – Interval (in milliseconds) to be used for performance monitor sampling.

Raises
  • TypeError – If interval is not type int.

  • ValueError – If interval <= 0 or interval > INT32_MAX(2147483647).

Examples

>>> # Set a new global configuration value for the monitor sampling interval.
>>> ds.config.set_monitor_sampling_interval(100)