From cd55c268cbada104d8fdb55ce8b9221fc59c08b7 Mon Sep 17 00:00:00 2001 From: joergoster Date: Tue, 7 Jul 2020 11:27:16 +0200 Subject: [PATCH] Bugfix. Otherwise creating a new net fails. --- src/eval/nnue/evaluate_nnue.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/eval/nnue/evaluate_nnue.cpp b/src/eval/nnue/evaluate_nnue.cpp index a573c9c7..bc06ea31 100644 --- a/src/eval/nnue/evaluate_nnue.cpp +++ b/src/eval/nnue/evaluate_nnue.cpp @@ -234,14 +234,15 @@ void prefetch_evalhash(const Key key) { // This function may be called twice to flag that the evaluation function needs to be reloaded. void load_eval() { + // Must be done! + NNUE::Initialize(); + if (Options["SkipLoadingEval"]) { std::cout << "info string SkipLoadingEval set to true, Net not loaded!" << std::endl; return; } - NNUE::Initialize(); - const std::string dir_name = Options["EvalDir"]; const std::string file_name = Path::Combine(dir_name, NNUE::kFileName);