Expose the lazy threshold for the feature transformer PSQT as a parameter.

Definition of the lazy threshold moved to evaluate.cpp where all others are.
Lazy threshold only used for real searches, not used for the "eval" call.
This preserves the purity of NNUE evaluation, which is useful to verify
consistency between the engine and the NNUE trainer.

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

No functional change
This commit is contained in:
Tomasz Sobczyk
2021-05-25 13:09:40 +02:00
committed by Joost VandeVondele
parent e044068b43
commit 9d53129075
4 changed files with 12 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ namespace Eval {
namespace NNUE {
Value evaluate(const Position& pos, bool adjusted = false);
Value evaluate(const Position& pos, bool adjusted = false, Value lazyThreshold = VALUE_INFINITE);
bool load_eval(std::string name, std::istream& stream);
bool save_eval(std::ostream& stream);
void init();