X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.h;h=d7cc6e290fb5ac3fa23d55316d5dff0161899bd4;hb=c31fc8d163ed2c5ff5697206f8a5eef65efa0044;hp=6210bd5816b8be77b7223f0c1b1b4eaab715b411;hpb=7ffae17f85709e49672a0e98e136b66aea067b2c;p=stockfish diff --git a/src/evaluate.h b/src/evaluate.h index 6210bd58..d7cc6e29 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -20,6 +20,7 @@ #define EVALUATE_H_INCLUDED #include +#include #include "types.h" @@ -29,7 +30,7 @@ class Position; namespace Eval { - std::string trace(const Position& pos); + std::string trace(Position& pos); Value evaluate(const Position& pos); extern bool useNNUE; @@ -38,15 +39,20 @@ namespace Eval { // The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue // for the build process (profile-build and fishtest) to work. Do not change the // name of the macro, as it is used in the Makefile. - #define EvalFileDefaultName "nn-62ef826d1a6d.nnue" + #define EvalFileDefaultName "nn-6762d36ad265.nnue" namespace NNUE { - Value evaluate(const Position& pos); - bool load_eval(std::string name, std::istream& stream); + std::string trace(Position& pos); + Value evaluate(const Position& pos, bool adjusted = false); + void init(); void verify(); + bool load_eval(std::string name, std::istream& stream); + bool save_eval(std::ostream& stream); + bool save_eval(const std::optional& filename); + } // namespace NNUE } // namespace Eval