提交 1f972361 编写于 作者: Y Yu Yang

Remove unused init method in paddle::Trainer

上级 f4678331
...@@ -90,16 +90,6 @@ DEFINE_string(model_list, "", "File that saves the model list when evaluation"); ...@@ -90,16 +90,6 @@ DEFINE_string(model_list, "", "File that saves the model list when evaluation");
namespace paddle { 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<TrainerConfigHelper>& config, void Trainer::init(const std::shared_ptr<TrainerConfigHelper>& config,
bool testing, bool testing,
const std::shared_ptr<GradientMachine>& gradientMachine, const std::shared_ptr<GradientMachine>& gradientMachine,
......
...@@ -71,11 +71,6 @@ public: ...@@ -71,11 +71,6 @@ public:
const std::shared_ptr<DataProvider>& dataProvider = nullptr, const std::shared_ptr<DataProvider>& dataProvider = nullptr,
const std::shared_ptr<DataProvider>& testDataProvider = nullptr); const std::shared_ptr<DataProvider>& testDataProvider = nullptr);
/**
* Initialize Trainer from command line flags.
*/
void init(int argc, char** argv);
/** /**
* Train until num_passes reached. * Train until num_passes reached.
* One pass means neural network train through all training data. * One pass means neural network train through all training data.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册