mindspore.dataset.config.get_monitor_sampling_interval
- mindspore.dataset.config.get_monitor_sampling_interval()
Get the global configuration of the sampling interval of the performance monitor. If set_monitor_sampling_interval has never been called before, the default value (1000) will be returned.
- Returns:
int, interval (in milliseconds) for performance monitor sampling.
Examples
>>> # Get the global configuration of monitor sampling interval. >>> # If set_monitor_sampling_interval() has never been called before, the default value (1000) will be returned. >>> import mindspore.dataset as ds >>> sampling_interval = ds.config.get_monitor_sampling_interval()