mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08: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:
@@ -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]) + " ";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user