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
c07644d1
Unverified
Commit
c07644d1
authored
Oct 23, 2020
by
Nikita Titov
Committed by
GitHub
Oct 23, 2020
Browse files
remove std::move (#3478)
parent
a53abd96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/boosting/gbdt_model_text.cpp
src/boosting/gbdt_model_text.cpp
+2
-2
No files found.
src/boosting/gbdt_model_text.cpp
View file @
c07644d1
...
...
@@ -393,7 +393,7 @@ std::string GBDT::SaveModelToString(int start_iteration, int num_iteration, int
ss
<<
loaded_parameter_
<<
"
\n
"
;
ss
<<
"end of parameters"
<<
'\n'
;
}
return
std
::
move
(
ss
.
str
()
)
;
return
ss
.
str
();
}
bool
GBDT
::
SaveModelToFile
(
int
start_iteration
,
int
num_iteration
,
int
feature_importance_type
,
const
char
*
filename
)
const
{
...
...
@@ -618,7 +618,7 @@ std::vector<double> GBDT::FeatureImportance(int num_iteration, int importance_ty
}
else
{
Log
::
Fatal
(
"Unknown importance type: only support split=0 and gain=1"
);
}
return
std
::
move
(
feature_importances
)
;
return
feature_importances
;
}
}
// namespace LightGBM
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