Added use_raw_nnue_eval option to return raw NNUE eval value in evaluate().

This commit is contained in:
nodchip
2020-08-27 23:48:28 +09:00
parent 7ee8a2bbb7
commit 9fc3ff4c30
2 changed files with 19 additions and 0 deletions

View File

@@ -32,6 +32,13 @@
#include "thread.h"
#include "uci.h"
#ifdef EVAL_LEARN
namespace Learner
{
extern bool use_raw_nnue_eval;
}
#endif
namespace Eval {
bool useNNUE;
@@ -941,6 +948,11 @@ make_v:
/// evaluation of the position from the point of view of the side to move.
Value Eval::evaluate(const Position& pos) {
#ifdef EVAL_LEARN
if (Learner::use_raw_nnue_eval) {
return NNUE::evaluate(pos);
}
#endif
if (Eval::useNNUE)
{