| 37 | namespace { |
| 38 | |
| 39 | void parseTuningRules(TuningConfig &cfg, std::vector<std::string> rules) |
| 40 | { |
| 41 | for (const std::string &ruleStr : rules) { |
| 42 | Rule rule = Command::parseRule(ruleStr); |
| 43 | cfg.tuneRule[rule] = true; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | LossType parseLossType(std::string lossType) |
| 48 | { |