mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Use the path and filename for restoring parameter files.
This commit is contained in:
parent
7f4b72cdfd
commit
e29499ee4b
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ void SetOptions(const std::string& options) {
|
||||||
|
|
||||||
// Reread the evaluation function parameters for learning from the file
|
// Reread the evaluation function parameters for learning from the file
|
||||||
void RestoreParameters(const std::string& dir_name) {
|
void RestoreParameters(const std::string& dir_name) {
|
||||||
const std::string file_name = NNUE::fileName;
|
const std::string file_name = Path::Combine(dir_name, NNUE::savedfileName);
|
||||||
std::ifstream stream(file_name, std::ios::binary);
|
std::ifstream stream(file_name, std::ios::binary);
|
||||||
bool result = ReadParameters(stream);
|
bool result = ReadParameters(stream);
|
||||||
assert(result);
|
assert(result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue