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:
parent
6db47ed71a
commit
1dcffa6210
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
|
||||||
Value nnue = smallNet ? networks.small.evaluate(pos, &caches.small, true, &nnueComplexity)
|
Value nnue = smallNet ? networks.small.evaluate(pos, &caches.small, true, &nnueComplexity)
|
||||||
: networks.big.evaluate(pos, &caches.big, 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)
|
if (smallNet && nnue * simpleEval < 0)
|
||||||
{
|
{
|
||||||
nnue = networks.big.evaluate(pos, &caches.big, true, &nnueComplexity);
|
nnue = networks.big.evaluate(pos, &caches.big, true, &nnueComplexity);
|
||||||
|
|
Loading…
Add table
Reference in a new issue