Skip to content

Commit 93f2d14

Browse files
xu-shawnDisservin
authored andcommitted
Simplify Incremental Updates
Passed Non-regression STC: LLR: 3.03 (-2.94,2.94) <-1.75,0.25> Total: 277856 W: 71575 L: 71611 D: 134670 Ptnml(0-2): 842, 30719, 75836, 30695, 836 https://tests.stockfishchess.org/tests/view/69169dc17ca8781852331d76 Supersedes #6430 closes #6434 No functional change
1 parent 1132d89 commit 93f2d14

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/nnue/nnue_accumulator.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -584,18 +584,6 @@ void update_accumulator_incremental(
584584
else
585585
FeatureSet::append_changed_indices(perspective, ksq, computed.diff, added, removed);
586586

587-
if (!added.size() && !removed.size())
588-
{
589-
auto& targetAcc = target_state.template acc<TransformedFeatureDimensions>();
590-
const auto& sourceAcc = computed.template acc<TransformedFeatureDimensions>();
591-
592-
targetAcc.accumulation[perspective] = sourceAcc.accumulation[perspective];
593-
targetAcc.psqtAccumulation[perspective] = sourceAcc.psqtAccumulation[perspective];
594-
targetAcc.computed[perspective] = true;
595-
596-
return;
597-
}
598-
599587
auto updateContext =
600588
make_accumulator_update_context(perspective, featureTransformer, computed, target_state);
601589

0 commit comments

Comments
 (0)