mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08:00
Don't unload evalfile on set nnue false
This commit is contained in:
@@ -253,12 +253,18 @@ void init() {
|
||||
|
||||
useNNUE = nnue_mode_from_option(Options["Use NNUE"]);
|
||||
|
||||
if (Options["SkipLoadingEval"] || useNNUE == UseNNUEMode::False)
|
||||
if (Options["SkipLoadingEval"])
|
||||
{
|
||||
eval_file_loaded.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
if (useNNUE == UseNNUEMode::False)
|
||||
{
|
||||
// Keep the eval file loaded. Useful for mixed bench.
|
||||
return;
|
||||
}
|
||||
|
||||
std::string eval_file = std::string(Options["EvalFile"]);
|
||||
|
||||
#if defined(DEFAULT_NNUE_DIRECTORY)
|
||||
|
||||
Reference in New Issue
Block a user