more detailed message

This commit is contained in:
Hieu Hoang 2017-01-24 20:47:46 +00:00
parent 90df5987c1
commit c8e0b6ebd8

View File

@ -108,7 +108,8 @@ void Validate(const YAML::Node& config) {
// "Different number of models and weights in config file");
UTIL_THROW_IF2(config["maxi-batch"].as<int>() < config["mini-batch"].as<int>(),
"maxi-batch < mini-batch");
"maxi-batch (" << config["maxi-batch"].as<int>()
<< ") < mini-batch (" << config["mini-batch"].as<int>() << ")");
}
void OutputRec(const YAML::Node node, YAML::Emitter& out) {