Pass accumulator caches by reference

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

No functional change
This commit is contained in:
Shawn Xu
2025-11-14 17:32:17 +01:00
committed by Joost VandeVondele
parent a191791f46
commit db824e26be
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -76,13 +76,13 @@ class Network {
NetworkOutput evaluate(const Position& pos,
AccumulatorStack& accumulatorStack,
AccumulatorCaches::Cache<FTDimensions>* cache) const;
AccumulatorCaches::Cache<FTDimensions>& cache) const;
void verify(std::string evalfilePath, const std::function<void(std::string_view)>&) const;
NnueEvalTrace trace_evaluate(const Position& pos,
AccumulatorStack& accumulatorStack,
AccumulatorCaches::Cache<FTDimensions>* cache) const;
AccumulatorCaches::Cache<FTDimensions>& cache) const;
private:
void load_user_net(const std::string&, const std::string&);