Commit 8dc2bed8 authored by Guolin Ke's avatar Guolin Ke
Browse files

remove a warning

parent eadc7b9d
...@@ -58,7 +58,7 @@ public: ...@@ -58,7 +58,7 @@ public:
if (config_.boosting_config.tree_learner_type == std::string("feature")) { if (config_.boosting_config.tree_learner_type == std::string("feature")) {
Log::Fatal("Do not support feature parallel in c api."); Log::Fatal("Do not support feature parallel in c api.");
} }
if (Network::num_machines() == 1) { if (Network::num_machines() == 1 && config_.boosting_config.tree_learner_type != std::string("serial")) {
Log::Warning("Only find one worker, will switch to serial tree learner."); Log::Warning("Only find one worker, will switch to serial tree learner.");
config_.boosting_config.tree_learner_type = "serial"; config_.boosting_config.tree_learner_type = "serial";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment