1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

[NNUE] init networks also for cmdline use

`./stockfish go depth 10`

now works if `Use NNUE` defaults to true.

No functional change
This commit is contained in:
Joost VandeVondele 2020-07-27 09:43:19 +02:00
parent 60497a85d6
commit b536b0ac67

View file

@ -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]) + " ";