From ab91c6e73001f3a83579353a2da3c7be6fffdeb5 Mon Sep 17 00:00:00 2001 From: syzygy1 <3028851+syzygy1@users.noreply.github.com> Date: Mon, 14 Sep 2020 22:35:42 +0200 Subject: [PATCH] Some fixes. --- src/evaluate.h | 2 +- src/nnue.c | 1 - src/ucioption.c | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/evaluate.h b/src/evaluate.h index aebb7966..9781fb46 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -3,7 +3,7 @@ #include "types.h" -#define DefaultEvalFile "nn-308d71810dff.nnue" +#define DefaultEvalFile "nn-82215d0fd0df.nnue" enum { Tempo = 28 }; diff --git a/src/nnue.c b/src/nnue.c index 01c9d384..b4459e01 100644 --- a/src/nnue.c +++ b/src/nnue.c @@ -416,7 +416,6 @@ INLINE void affine_propagate(clipped_t *input, int32_t *output, unsigned inDims, output[i] = sum[0] + sum[1] + sum[2] + sum[3]; #else - (void)numChunks; int32_t sum = biases[i]; for (unsigned j = 0; j < inDims; j++) sum += weights[offset + j] * input[j]; diff --git a/src/ucioption.c b/src/ucioption.c index 5fae5cc3..667f84c9 100644 --- a/src/ucioption.c +++ b/src/ucioption.c @@ -27,6 +27,7 @@ #include #endif +#include "evaluate.h" #include "misc.h" #include "numa.h" #include "polybook.h" @@ -120,7 +121,7 @@ static Option optionsMap[] = { { "BestBookMove", OPT_TYPE_CHECK, 1, 0, 0, NULL, on_best_book_move, 0, NULL }, { "BookDepth", OPT_TYPE_SPIN, 255, 1, 255, NULL, on_book_depth, 0, NULL }, #ifdef NNUE - { "EvalFile", OPT_TYPE_STRING, 0, 0, 0, "nn-82215d0fd0df.nnue", NULL, 0, NULL }, + { "EvalFile", OPT_TYPE_STRING, 0, 0, 0, DefaultEvalFile, NULL, 0, NULL }, { "Use NNUE", OPT_TYPE_COMBO, 0, 0, 0, "Hybrid var Hybrid var Pure var Classical", NULL, 0, NULL }, #endif