Remove non-functional accumulator reset

Passed Non-regression STC:
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 219360 W: 56600 L: 56583 D: 106177
Ptnml(0-2): 582, 23419, 61620, 23518, 541
https://tests.stockfishchess.org/tests/view/67fad20dcd501869c669780f

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

no functional change
This commit is contained in:
Shawn Xu
2025-04-26 21:30:01 +02:00
committed by Joost VandeVondele
parent f9459e4c8e
commit f273eea71f
5 changed files with 33 additions and 54 deletions
+5 -8
View File
@@ -41,8 +41,6 @@ using BiasType = std::int16_t;
using PSQTWeightType = std::int32_t;
using IndexType = std::uint32_t;
struct Networks;
template<IndexType Size>
struct alignas(CacheLineSize) Accumulator;
@@ -149,13 +147,12 @@ struct AccumulatorState {
class AccumulatorStack {
public:
AccumulatorStack() :
m_accumulators(MAX_PLY + 1),
m_current_idx{} {}
accumulators(MAX_PLY + 1),
size{1} {}
[[nodiscard]] const AccumulatorState& latest() const noexcept;
void
reset(const Position& rootPos, const Networks& networks, AccumulatorCaches& caches) noexcept;
void reset() noexcept;
void push(const DirtyPiece& dirtyPiece) noexcept;
void pop() noexcept;
@@ -185,8 +182,8 @@ class AccumulatorStack {
const FeatureTransformer<Dimensions>& featureTransformer,
const std::size_t end) noexcept;
std::vector<AccumulatorState> m_accumulators;
std::size_t m_current_idx;
std::vector<AccumulatorState> accumulators;
std::size_t size;
};
} // namespace Stockfish::Eval::NNUE