mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-27 04:26:24 +08:00
Unify naming convention of the NNUE code
matches the rest of the stockfish code base closes https://github.com/official-stockfish/Stockfish/pull/3437 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
a7ab92ec25
commit
fbbd4adc3c
@@ -36,7 +36,7 @@ namespace Stockfish::Eval::NNUE::Features {
|
||||
return value == First || CompileTimeList<T, Remaining...>::Contains(value);
|
||||
}
|
||||
static constexpr std::array<T, sizeof...(Remaining) + 1>
|
||||
kValues = {{First, Remaining...}};
|
||||
Values = {{First, Remaining...}};
|
||||
};
|
||||
|
||||
// Base class of feature set
|
||||
@@ -51,16 +51,16 @@ namespace Stockfish::Eval::NNUE::Features {
|
||||
|
||||
public:
|
||||
// Hash value embedded in the evaluation file
|
||||
static constexpr std::uint32_t kHashValue = FeatureType::kHashValue;
|
||||
static constexpr std::uint32_t HashValue = FeatureType::HashValue;
|
||||
// Number of feature dimensions
|
||||
static constexpr IndexType kDimensions = FeatureType::kDimensions;
|
||||
static constexpr IndexType Dimensions = FeatureType::Dimensions;
|
||||
// Maximum number of simultaneously active features
|
||||
static constexpr IndexType kMaxActiveDimensions =
|
||||
FeatureType::kMaxActiveDimensions;
|
||||
static constexpr IndexType MaxActiveDimensions =
|
||||
FeatureType::MaxActiveDimensions;
|
||||
// Trigger for full calculation instead of difference calculation
|
||||
using SortedTriggerSet =
|
||||
CompileTimeList<TriggerEvent, FeatureType::kRefreshTrigger>;
|
||||
static constexpr auto kRefreshTriggers = SortedTriggerSet::kValues;
|
||||
CompileTimeList<TriggerEvent, FeatureType::RefreshTrigger>;
|
||||
static constexpr auto RefreshTriggers = SortedTriggerSet::Values;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user