Merge pull request #1222 from reyoung/feature/remove_unused_function_in_trainer

Remove unused init method in paddle::Trainer
avx_docs
wangkuiyi 8 years ago committed by GitHub
commit 90268e1258

@ -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<TrainerConfigHelper>& config,
bool testing,
const std::shared_ptr<GradientMachine>& gradientMachine,

@ -71,11 +71,6 @@ public:
const std::shared_ptr<DataProvider>& dataProvider = 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.
* One pass means neural network train through all training data.

Loading…
Cancel
Save