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:
parent
60497a85d6
commit
b536b0ac67
1 changed files with 3 additions and 0 deletions
|
@ -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]) + " ";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue