mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Include threat weights in network hash calculation
closes https://github.com/official-stockfish/Stockfish/pull/6583 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
1018879fe1
commit
7f85cfbfa2
@@ -218,10 +218,19 @@ class FeatureTransformer {
|
||||
|
||||
std::size_t get_content_hash() const {
|
||||
std::size_t h = 0;
|
||||
|
||||
hash_combine(h, get_raw_data_hash(biases));
|
||||
hash_combine(h, get_raw_data_hash(weights));
|
||||
hash_combine(h, get_raw_data_hash(psqtWeights));
|
||||
|
||||
if constexpr (UseThreats)
|
||||
{
|
||||
hash_combine(h, get_raw_data_hash(threatWeights));
|
||||
hash_combine(h, get_raw_data_hash(threatPsqtWeights));
|
||||
}
|
||||
|
||||
hash_combine(h, get_hash_value());
|
||||
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user