|
|
|
@ -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,
|
|
|
|
|