Skip to content

Commit

Permalink
messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sopel97 committed Aug 26, 2021
1 parent 93a7556 commit 795582a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nnue.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ static bool verify_net(const void *evalData, size_t size)
{
const char *d = evalData;
if (readu_le_u32(d) != NnueVersion) return false;
if (size != 188321188) return false;

return true;
}
Expand Down Expand Up @@ -689,12 +690,15 @@ void nnue_init(void)
if (loadedFile)
free(loadedFile);

printf("info string Loading the evaluation network...\n");

if (load_eval_file(evalFile)) {
loadedFile = strdup(evalFile);
printf("info string Evaluation network successfully loaded.\n");
return;
}

printf("info string ERROR: The network file was not loaded successfully. You done goofed. I quit.\n");
printf("info string ERROR: The evaluation network file was not loaded successfully. You done goofed. I quit.\n");
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit 795582a

Please sign in to comment.