Skip to content

Commit

Permalink
fix bug in loading config for pred task (dmlc#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoq authored and khotilov committed Oct 20, 2017
1 parent 5dca674 commit c09ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ void CLIPredict(const CLIParam& param) {
std::unique_ptr<Learner> learner(Learner::Create({}));
std::unique_ptr<dmlc::Stream> fi(
dmlc::Stream::Create(param.model_in.c_str(), "r"));
learner->Configure(param.cfg);
learner->Load(fi.get());
learner->Configure(param.cfg);

if (param.silent == 0) {
LOG(CONSOLE) << "start prediction...";
Expand Down

0 comments on commit c09ad42

Please sign in to comment.