1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Comment about re-evaluating positions

While the smallNet bool is no longer used as of now,
setting it to false upon re-evaluation represents the
correct eval state.

closes https://github.com/official-stockfish/Stockfish/pull/5279

No functional change
This commit is contained in:
Linmiao Xu 2024-05-21 22:50:44 -04:00 committed by Disservin
parent 6db47ed71a
commit 1dcffa6210

View file

@ -66,6 +66,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
Value nnue = smallNet ? networks.small.evaluate(pos, &caches.small, true, &nnueComplexity)
: networks.big.evaluate(pos, &caches.big, true, &nnueComplexity);
// Re-evaluate the position when higher eval accuracy is worth the time spent
if (smallNet && nnue * simpleEval < 0)
{
nnue = networks.big.evaluate(pos, &caches.big, true, &nnueComplexity);