some minor changes to NNUE interference | bench 1136338
This commit is contained in:
1 parent
d73ed3b98d
commit
0a8d7ca2f5
5 files changed
+47
-43
No files matched your search
+9
-9
@@ -231,8 +231,8 @@ void Board::PrintNNUE() {
|
||||
std::cout << "First 16 accumulator values (pre-activation)[white] ";
|
||||
|
||||
for (int i = 0; i < 16; i++) {
|
||||
if (accPair.white.values[i] != 0) {
|
||||
std::cout << accPair.white.values[i] << ' ';
|
||||
if (accPair.white[i] != 0) {
|
||||
std::cout << accPair.white[i] << ' ';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,8 +491,8 @@ void Board::ResetAccPair() {
|
||||
Bitboard whitePieces = colors[White];
|
||||
Bitboard blackPieces = colors[Black];
|
||||
|
||||
accPair.white.values = NNUE::net.accumulator_biases;
|
||||
accPair.black.values = NNUE::net.accumulator_biases;
|
||||
accPair.white = NNUE::net.accumulator_biases;
|
||||
accPair.black = NNUE::net.accumulator_biases;
|
||||
|
||||
while (whitePieces) {
|
||||
int square = whitePieces.getLS1BIndex();
|
||||
@@ -501,8 +501,8 @@ void Board::ResetAccPair() {
|
||||
int bInput = ACC::CalculateIndex(Black, White, GetPieceType(square), square);
|
||||
|
||||
for (int i = 0; i < NNUE::HL_SIZE; i++) {
|
||||
accPair.white.values[i] += NNUE::net.accumulator_weights[wInput * NNUE::HL_SIZE + i];
|
||||
accPair.black.values[i] += NNUE::net.accumulator_weights[bInput * NNUE::HL_SIZE + i];
|
||||
accPair.white[i] += NNUE::net.accumulator_weights[wInput * NNUE::HL_SIZE + i];
|
||||
accPair.black[i] += NNUE::net.accumulator_weights[bInput * NNUE::HL_SIZE + i];
|
||||
}
|
||||
|
||||
whitePieces.PopBit(square);
|
||||
@@ -515,10 +515,10 @@ void Board::ResetAccPair() {
|
||||
int bInput = ACC::CalculateIndex(Black, Black, GetPieceType(square), square);
|
||||
|
||||
for (int i = 0; i < NNUE::HL_SIZE; i++) {
|
||||
accPair.white.values[i] += NNUE::net.accumulator_weights[wInput * NNUE::HL_SIZE + i];
|
||||
accPair.black.values[i] += NNUE::net.accumulator_weights[bInput * NNUE::HL_SIZE + i];
|
||||
accPair.white[i] += NNUE::net.accumulator_weights[wInput * NNUE::HL_SIZE + i];
|
||||
accPair.black[i] += NNUE::net.accumulator_weights[bInput * NNUE::HL_SIZE + i];
|
||||
}
|
||||
|
||||
blackPieces.PopBit(square);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user