forked from mindspore-Ecosystem/mindspore
set monitor sampling interval through json file
This commit is contained in:
parent
b0a10c26a4
commit
7f54d17be9
|
@ -41,6 +41,7 @@ Status ConfigManager::FromJson(const nlohmann::json &j) {
|
|||
set_worker_connector_size(j.value("workerConnectorSize", worker_connector_size_));
|
||||
set_op_connector_size(j.value("opConnectorSize", op_connector_size_));
|
||||
set_seed(j.value("seed", seed_));
|
||||
set_monitor_sampling_interval(j.value("monitorSamplingInterval"));
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
|
|
@ -185,7 +185,8 @@ class ConfigurationManager:
|
|||
>>> # "numParallelWorkers": 4,
|
||||
>>> # "workerConnectorSize": 16,
|
||||
>>> # "opConnectorSize": 16,
|
||||
>>> # "seed": 5489
|
||||
>>> # "seed": 5489,
|
||||
>>> # "monitorSamplingInterval": 30
|
||||
>>> # }
|
||||
"""
|
||||
self.config.load(file)
|
||||
|
|
Loading…
Reference in New Issue