Merge branch 'master' into no_eval_learn

This commit is contained in:
Tomasz Sobczyk
2020-09-13 13:36:16 +02:00
committed by GitHub
4 changed files with 13 additions and 8 deletions

View File

@@ -1986,7 +1986,13 @@ namespace Learner
Eval::NNUE::SetBatchSize(nn_batch_size);
Eval::NNUE::SetOptions(nn_options);
if (newbob_decay != 1.0 && !Options["SkipLoadingEval"]) {
learn_think.best_nn_directory = std::string(Options["EvalDir"]);
// Save the current net to [EvalSaveDir]\original.
Eval::save_eval("original");
// Set the folder above to best_nn_directory so that the trainer can
// resotre the network parameters from the original net file.
learn_think.best_nn_directory =
Path::Combine(Options["EvalSaveDir"], "original");
}
cout << "init done." << endl;