Skip to content

Commit

Permalink
Use the path and filename for restoring parameter files.
Browse files Browse the repository at this point in the history
  • Loading branch information
joergoster authored and nodchip committed Jul 15, 2020
1 parent 7f4b72c commit e29499e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval/nnue/evaluate_nnue_learner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void SetOptions(const std::string& options) {

// Reread the evaluation function parameters for learning from the file
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);
bool result = ReadParameters(stream);
assert(result);
Expand Down

0 comments on commit e29499e

Please sign in to comment.