From a9d9ddf22e147c66ce25bb112d6c2b0890bf51df Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 22 Oct 2023 21:06:40 +0300 Subject: [PATCH] bench: 1241996 bench: 1241996 --- src/nnue/evaluate_nnue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nnue/evaluate_nnue.cpp b/src/nnue/evaluate_nnue.cpp index 679192d4710..113fb163206 100644 --- a/src/nnue/evaluate_nnue.cpp +++ b/src/nnue/evaluate_nnue.cpp @@ -418,6 +418,7 @@ bool save_eval(const std::optional& filename) { std::ofstream stream(actualFilename, std::ios_base::binary); bool saved = save_eval(stream); + stream.close(); // Close the file stream msg = saved ? "Network saved successfully to " + actualFilename : "Failed to export a net";