refine paddle_merge_model

revert-4814-Add_sequence_project_op
xzl 7 years ago
parent 9f1d1bf48c
commit 816da57f30

@ -20,6 +20,7 @@ limitations under the License. */
#include "paddle/utils/PythonUtil.h"
DEFINE_string(model_dir, "", "Directory for separated model files");
DEFINE_string(config_file, "", "Config file for the model");
DEFINE_string(model_file, "", "File for merged model file");
using namespace paddle; // NOLINT
@ -28,7 +29,7 @@ using namespace std; // NOLINT
int main(int argc, char** argv) {
initMain(argc, argv);
initPython(argc, argv);
string confFile = TrainerConfigHelper::getConfigNameFromPath(FLAGS_model_dir);
string confFile = FLAGS_config_file;
#ifdef PADDLE_ONLY_CPU
FLAGS_use_gpu = false;
#endif

Loading…
Cancel
Save