diff options
| author | tslil <tslil@posteo.de> | 2026-09-16 20:10:33 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-09-16 21:02:53 +0100 |
| commit | 1898add0142b70b3fef5af78a6f3d7399a3f2cd5 (patch) | |
| tree | ef62b4d6b6f78a426248f7636a83b77cce5edaa4 /include/nn.h | |
| parent | 7f1566fb21dfe8c99bc770885cc2cc4e478e16b4 (diff) | |
A little subtle, but in non-self-play games sharing tt entries is incorrect. We must therefore key additionally on the evaulation function itself.
Diffstat (limited to 'include/nn.h')
| -rw-r--r-- | include/nn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nn.h b/include/nn.h index 3a2277a..1d3eba0 100644 --- a/include/nn.h +++ b/include/nn.h @@ -41,6 +41,8 @@ int nn_last_cell_idxs(uint8_t *out, tak_state_p state); // Network // =================================================================== +typedef float (*nn_function)(tak_state_p); + float eval_net(const float *board, const unsigned int n_inp, const float *w, const float *biases, const float *logit_w, const float logit_b, const unsigned int n_dense, |
