mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
122c78b521
No functional change.
22 lines
552 B
C++
22 lines
552 B
C++
// Class for difference calculation of NNUE evaluation function
|
|
|
|
#ifndef NNUE_ACCUMULATOR_H_INCLUDED
|
|
#define NNUE_ACCUMULATOR_H_INCLUDED
|
|
|
|
#include "nnue_architecture.h"
|
|
|
|
namespace Eval::NNUE {
|
|
|
|
// Class that holds the result of affine transformation of input features
|
|
struct alignas(32) Accumulator {
|
|
std::int16_t
|
|
accumulation[2][kRefreshTriggers.size()][kTransformedFeatureDimensions];
|
|
Value score;
|
|
bool computed_accumulation;
|
|
bool computed_score;
|
|
};
|
|
|
|
} // namespace Eval::NNUE
|
|
|
|
#endif // NNUE_ACCUMULATOR_H_INCLUDED
|