Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
8dc2bed8
Commit
8dc2bed8
authored
Oct 16, 2017
by
Guolin Ke
Browse files
remove a warning
parent
eadc7b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/c_api.cpp
src/c_api.cpp
+1
-1
No files found.
src/c_api.cpp
View file @
8dc2bed8
...
@@ -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"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment