From 1f972361774a60c011715280880600249a8d6203 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 24 Jan 2017 14:03:35 +0800 Subject: [PATCH] Remove unused init method in paddle::Trainer --- paddle/trainer/Trainer.cpp | 10 ---------- paddle/trainer/Trainer.h | 5 ----- 2 files changed, 15 deletions(-) diff --git a/paddle/trainer/Trainer.cpp b/paddle/trainer/Trainer.cpp index 8465addaf9e..bd845453751 100644 --- a/paddle/trainer/Trainer.cpp +++ b/paddle/trainer/Trainer.cpp @@ -90,16 +90,6 @@ DEFINE_string(model_list, "", "File that saves the model list when evaluation"); namespace paddle { -void Trainer::init(int argc, char** argv) { - initMain(argc, argv); - initPython(argc, argv); - - auto config = TrainerConfigHelper::createFromFlagConfig(); - feenableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW); - - init(config); -} - void Trainer::init(const std::shared_ptr& config, bool testing, const std::shared_ptr& gradientMachine, diff --git a/paddle/trainer/Trainer.h b/paddle/trainer/Trainer.h index 7cbf18ace7a..c8ee4726c24 100644 --- a/paddle/trainer/Trainer.h +++ b/paddle/trainer/Trainer.h @@ -71,11 +71,6 @@ public: const std::shared_ptr& dataProvider = nullptr, const std::shared_ptr& testDataProvider = nullptr); - /** - * Initialize Trainer from command line flags. - */ - void init(int argc, char** argv); - /** * Train until num_passes reached. * One pass means neural network train through all training data. -- GitLab