Function mindspore::dataset::config::set_monitor_sampling_interval

Function Documentation

bool mindspore::dataset::config::set_monitor_sampling_interval(int32_t interval)

A function to set the default interval (in milliseconds) for monitor sampling.

Parameters

interval[in] Interval (in milliseconds) to be used for performance monitor sampling.

Returns

The sampling interval is set successfully or not.

样例
// Set a new global configuration value for the monitor sampling interval.
bool rc = config::set_monitor_sampling_interval(100);