Don't unload evalfile on set nnue false

This commit is contained in:
Tomasz Sobczyk
2020-12-24 17:01:56 +01:00
committed by nodchip
parent c1e69f450e
commit 6d28d97a91

View File

@@ -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)