mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Bugfix.
Otherwise creating a new net fails.
This commit is contained in:
parent
a5af8510a5
commit
cd55c268cb
1 changed files with 3 additions and 2 deletions
|
@ -234,14 +234,15 @@ void prefetch_evalhash(const Key key) {
|
|||
// This function may be called twice to flag that the evaluation function needs to be reloaded.
|
||||
void load_eval() {
|
||||
|
||||
// Must be done!
|
||||
NNUE::Initialize();
|
||||
|
||||
if (Options["SkipLoadingEval"])
|
||||
{
|
||||
std::cout << "info string SkipLoadingEval set to true, Net not loaded!" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
NNUE::Initialize();
|
||||
|
||||
const std::string dir_name = Options["EvalDir"];
|
||||
const std::string file_name = Path::Combine(dir_name, NNUE::kFileName);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue