X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevaluate.h;h=d7cc6e290fb5ac3fa23d55316d5dff0161899bd4;hb=HEAD;hp=7f4feedf0c6be62ecad204587d6b49f56e41f35e;hpb=b25d68f6ee2d016cc0c14b076e79e6c44fdaea2a;p=stockfish diff --git a/src/evaluate.h b/src/evaluate.h index 7f4feedf..c9041efb 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -1,6 +1,6 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2023 The Stockfish developers (see AUTHORS file) + Copyright (C) 2004-2024 The Stockfish developers (see AUTHORS file) Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,31 +26,31 @@ namespace Stockfish { class Position; -enum Value : int; namespace Eval { - std::string trace(Position& pos); +// 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 or the location where this macro is defined, as it is used +// in the Makefile/Fishtest. +#define EvalFileDefaultNameBig "nn-1111cefa1111.nnue" +#define EvalFileDefaultNameSmall "nn-37f18f62d772.nnue" - Value simple_eval(const Position& pos, Color c); - Value evaluate(const Position& pos); +namespace NNUE { +struct Networks; +struct AccumulatorCaches; +} - extern std::string currentEvalFileName; +std::string trace(Position& pos, const Eval::NNUE::Networks& networks); - // 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-c38c3d8d3920.nnue" +int simple_eval(const Position& pos, Color c); +bool use_smallnet(const Position& pos); +Value evaluate(const NNUE::Networks& networks, + const Position& pos, + Eval::NNUE::AccumulatorCaches& caches, + int optimism); +} // namespace Eval - namespace NNUE { +} // namespace Stockfish - void init(); - void verify(); - - } // namespace NNUE - -} // namespace Eval - -} // namespace Stockfish - -#endif // #ifndef EVALUATE_H_INCLUDED +#endif // #ifndef EVALUATE_H_INCLUDED