]> git.sesse.net Git - stockfish/blobdiff - src/nnue/nnue_accumulator.h
Merge remote-tracking branch 'upstream/master' into HEAD
[stockfish] / src / nnue / nnue_accumulator.h
index 69dfaad214795deb4155890922b4925c99714646..a357d83526c89ef175e8fc10e6fe1e25b420e4bf 100644 (file)
 
 namespace Eval::NNUE {
 
+  // The accumulator of a StateInfo without parent is set to the INIT state
+  enum AccumulatorState { EMPTY, COMPUTED, INIT };
+
   // Class that holds the result of affine transformation of input features
   struct alignas(kCacheLineSize) Accumulator {
     std::int16_t
         accumulation[2][kRefreshTriggers.size()][kTransformedFeatureDimensions];
-    Value score;
-    bool computed_accumulation;
-    bool computed_score;
+    AccumulatorState state[2];
   };
 
 }  // namespace Eval::NNUE