mindspore.dataset.config.get_monitor_sampling_interval

mindspore.dataset.config.get_monitor_sampling_interval()

获取性能监控采样时间间隔的全局配置。 如果 set_monitor_sampling_interval 方法未被调用,那么将会返回默认值1000。

返回:

int,表示性能监控采样间隔时间(毫秒)。

样例:

>>> # Get the global configuration of monitor sampling interval.
>>> # If set_monitor_sampling_interval() is never called before, the default value(1000) will be returned.
>>> sampling_interval = ds.config.get_monitor_sampling_interval()