implemented nnue load

This commit is contained in:
rektdie committed 2025-04-08 10:51:35 +02:00
1 parent 82c969a2ad
commit 67e9ebdda3
6 files changed
+55 -6

No files matched your search

+2 -3
View File
@@ -15,15 +15,14 @@ int CalculateIndex(bool perspective, int square, int pieceType, bool side) {
void Accumulator::Add(const NNUE::Network* net, int index) {
for (int i = 0; i < NNUE::HL_SIZE; i ++) {
values[i] += net->accumulator_weights[index][i];
values[i] += net->accumulator_weights[index * NNUE::INPUT_SIZE + i];
}
}
void Accumulator::Sub(const NNUE::Network* net, int index) {
for (int i = 0; i < NNUE::HL_SIZE; i ++) {
values[i] -= net->accumulator_weights[index][i];
values[i] -= net->accumulator_weights[index * NNUE::INPUT_SIZE + i];
}
}
}