mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Use the path and filename for restoring parameter files.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user