Skip to content

Commit

Permalink
Fix bug that causes the engine not to load the configured small net file
Browse files Browse the repository at this point in the history
  • Loading branch information
khalid-a-omar committed Jan 11, 2024
1 parent 0fdf006 commit 057cce2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ void NNUE::init() {
// Replace with
// Options[evalFile.option_name]
// once fishtest supports the uci option EvalFileSmall
std::string user_eval_file =
netSize == Small ? evalFile.default_name : Options[evalFile.option_name];
std::string user_eval_file = Options[evalFile.option_name];

if (user_eval_file.empty())
user_eval_file = evalFile.default_name;
Expand Down Expand Up @@ -140,8 +139,7 @@ void NNUE::verify() {
// Replace with
// Options[evalFile.option_name]
// once fishtest supports the uci option EvalFileSmall
std::string user_eval_file =
netSize == Small ? evalFile.default_name : Options[evalFile.option_name];
std::string user_eval_file = Options[evalFile.option_name];
if (user_eval_file.empty())
user_eval_file = evalFile.default_name;

Expand Down

0 comments on commit 057cce2

Please sign in to comment.