Update main network to nn-9a0cc2a62c52.nnue

network with new hash encoding.

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

no functional change
This commit is contained in:
Shawn Xu
2026-03-07 22:12:51 +01:00
committed by Joost VandeVondele
parent 82320c0e38
commit 868b63d421
2 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ namespace Eval {
// for the build process (profile-build and fishtest) to work. Do not change the
// name of the macro or the location where this macro is defined, as it is used
// in the Makefile/Fishtest.
#define EvalFileDefaultNameBig "nn-5227780996d3.nnue"
#define EvalFileDefaultNameBig "nn-9a0cc2a62c52.nnue"
#define EvalFileDefaultNameSmall "nn-37f18f62d772.nnue"
namespace NNUE {
+12 -1
View File
@@ -122,9 +122,20 @@ class FeatureTransformer {
static constexpr auto InversePackusEpi16Order = invert_permutation(PackusEpi16Order);
static constexpr std::uint32_t combine_hash(std::initializer_list<std::uint32_t> hashes) {
std::uint32_t hash = 0;
for (const auto component_hash : hashes)
{
hash = (hash << 1) | (hash >> 31);
hash ^= component_hash;
}
return hash;
}
// Hash value embedded in the evaluation file
static constexpr std::uint32_t get_hash_value() {
return (UseThreats ? ThreatFeatureSet::HashValue : PSQFeatureSet::HashValue)
return (UseThreats ? combine_hash({ThreatFeatureSet::HashValue, PSQFeatureSet::HashValue})
: PSQFeatureSet::HashValue)
^ (OutputDimensions * 2);
}