mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
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:
committed by
Joost VandeVondele
parent
82320c0e38
commit
868b63d421
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user