Skip to content

Commit

Permalink
Fix bug in MergeModel.cpp. (#5605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xreki authored Nov 15, 2017
1 parent d3ef254 commit 9f28925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/trainer/MergeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ using namespace paddle; // NOLINT
using namespace std; // NOLINT

int main(int argc, char** argv) {
initMain(argc, argv);
initPython(argc, argv);

if (FLAGS_model_dir.empty() || FLAGS_config_file.empty() ||
FLAGS_model_file.empty()) {
LOG(INFO) << "Usage: ./paddle_merge_model --model_dir=pass-00000 "
"--config_file=config.py --model_file=out.paddle";
return 0;
}

initMain(argc, argv);
initPython(argc, argv);

string confFile = FLAGS_config_file;
#ifndef PADDLE_WITH_CUDA
FLAGS_use_gpu = false;
Expand Down

0 comments on commit 9f28925

Please sign in to comment.