mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 17:49:35 +00:00
Merge pull request #40 from FireFather/master
Update evaluate_nnue_learner.cpp
This commit is contained in:
commit
272f0f88c3
1 changed files with 2 additions and 2 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 = Path::Combine(dir_name, NNUE::kFileName);
|
const std::string file_name = NNUE::fileName;
|
||||||
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);
|
||||||
|
@ -213,7 +213,7 @@ void save_eval(std::string dir_name) {
|
||||||
NNUE::SendMessages({{"clear_unobserved_feature_weights"}});
|
NNUE::SendMessages({{"clear_unobserved_feature_weights"}});
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string file_name = Path::Combine(eval_dir, NNUE::kFileName);
|
const std::string file_name = NNUE::fileName;
|
||||||
std::ofstream stream(file_name, std::ios::binary);
|
std::ofstream stream(file_name, std::ios::binary);
|
||||||
const bool result = NNUE::WriteParameters(stream);
|
const bool result = NNUE::WriteParameters(stream);
|
||||||
assert(result);
|
assert(result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue