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
31bc196a
Unverified
Commit
31bc196a
authored
Jan 07, 2021
by
shiyu1994
Committed by
GitHub
Jan 07, 2021
Browse files
fix bug in ExtractFeaturesFromMemory when predidct_fun_ is used (#3721)
parent
753b0e9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/dataset_loader.cpp
src/io/dataset_loader.cpp
+1
-1
No files found.
src/io/dataset_loader.cpp
View file @
31bc196a
...
...
@@ -1205,7 +1205,7 @@ void DatasetLoader::ExtractFeaturesFromMemory(std::vector<std::string>* text_dat
// set label
dataset
->
metadata_
.
SetLabelAt
(
i
,
static_cast
<
label_t
>
(
tmp_label
));
// free processed line:
text_data
[
i
].
clear
();
ref_
text_data
[
i
].
clear
();
// shrink_to_fit will be very slow in linux, and seems not free memory, disable for now
// text_reader_->Lines()[i].shrink_to_fit();
// push data
...
...
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