X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.h;h=b85038779e252945617af7e76d8ae51ec07d0225;hp=6210bd5816b8be77b7223f0c1b1b4eaab715b411;hb=af0d82792e21f0362b781fc671ae8b7a0642e61a;hpb=7ffae17f85709e49672a0e98e136b66aea067b2c diff --git a/src/evaluate.h b/src/evaluate.h index 6210bd58..b8503877 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-517c4f68b5df.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