]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
NNUE accumulator update in probcut.
[stockfish] / src / search.cpp
index 6ccc70cc673ba783bd993c124d88fc12f10a42c1..cfb569b90934e6cab2fc1cc7bec602aa5035d8ff 100644 (file)
@@ -744,7 +744,11 @@ namespace {
         if (eval == VALUE_NONE)
             ss->staticEval = eval = evaluate(pos, &complexity);
         else // Fall back to (semi)classical complexity for TT hits, the NNUE complexity is lost
+        {
             complexity = abs(ss->staticEval - pos.psq_eg_stm());
+            if (PvNode)
+               Eval::NNUE::hint_common_parent_position(pos);
+        }
 
         // ttValue can be used as a better position evaluation (~7 Elo)
         if (    ttValue != VALUE_NONE
@@ -895,6 +899,8 @@ namespace {
                     return value;
                 }
             }
+
+        Eval::NNUE::hint_common_parent_position(pos);
     }
 
     // Step 11. If the position is not in TT, decrease depth by 3.