mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Expose EvalFileSmall option for small net
Since https://github.com/official-stockfish/fishtest/pull/1870 has been merged it's time for this update. 5k Fixed Games showed no problems. https://tests.stockfishchess.org/tests/view/65d9cc274c0e22b904f574d7 closes https://github.com/official-stockfish/Stockfish/pull/5068 No functional change
This commit is contained in:
parent
fc41f64dfd
commit
d07033d5da
2 changed files with 6 additions and 10 deletions
|
@ -77,11 +77,7 @@ NNUE::EvalFiles NNUE::load_networks(const std::string& rootDirectory,
|
|||
|
||||
for (auto& [netSize, evalFile] : evalFiles)
|
||||
{
|
||||
// Replace with
|
||||
// options[evalFile.optionName]
|
||||
// once fishtest supports the uci option EvalFileSmall
|
||||
std::string user_eval_file =
|
||||
netSize == Small ? evalFile.defaultName : options[evalFile.optionName];
|
||||
std::string user_eval_file = options[evalFile.optionName];
|
||||
|
||||
if (user_eval_file.empty())
|
||||
user_eval_file = evalFile.defaultName;
|
||||
|
@ -149,11 +145,8 @@ void NNUE::verify(const OptionsMap& optio
|
|||
|
||||
for (const auto& [netSize, evalFile] : evalFiles)
|
||||
{
|
||||
// Replace with
|
||||
// options[evalFile.optionName]
|
||||
// once fishtest supports the uci option EvalFileSmall
|
||||
std::string user_eval_file =
|
||||
netSize == Small ? evalFile.defaultName : options[evalFile.optionName];
|
||||
std::string user_eval_file = options[evalFile.optionName];
|
||||
|
||||
if (user_eval_file.empty())
|
||||
user_eval_file = evalFile.defaultName;
|
||||
|
||||
|
|
|
@ -83,6 +83,9 @@ UCI::UCI(int argc, char** argv) :
|
|||
options["EvalFile"] << Option(EvalFileDefaultNameBig, [this](const Option&) {
|
||||
evalFiles = Eval::NNUE::load_networks(cli.binaryDirectory, options, evalFiles);
|
||||
});
|
||||
options["EvalFileSmall"] << Option(EvalFileDefaultNameSmall, [this](const Option&) {
|
||||
evalFiles = Eval::NNUE::load_networks(cli.binaryDirectory, options, evalFiles);
|
||||
});
|
||||
|
||||
threads.set({options, threads, tt});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue