From b536b0ac67a31d538ec07fabed25af77bf6def9c Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Mon, 27 Jul 2020 09:43:19 +0200 Subject: [PATCH] [NNUE] init networks also for cmdline use `./stockfish go depth 10` now works if `Use NNUE` defaults to true. No functional change --- src/uci.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uci.cpp b/src/uci.cpp index 7261bc72..08d93e07 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -238,6 +238,9 @@ void UCI::loop(int argc, char* argv[]) { pos.set(StartFEN, false, Options["Use NNUE"], &states->back(), Threads.main()); + if (argc > 1) + init_nnue(Options["EvalFile"]); + for (int i = 1; i < argc; ++i) cmd += std::string(argv[i]) + " ";