]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.h
Exporting the currently loaded network file
[stockfish] / src / evaluate.h
index b7525aab8bbed6d92b72ff376e61348962f91b07..128a7caefcc13611f05437d19e8e4e42207ba354 100644 (file)
@@ -20,6 +20,7 @@
 #define EVALUATE_H_INCLUDED
 
 #include <string>
+#include <optional>
 
 #include "types.h"
 
@@ -44,8 +45,9 @@ namespace Eval {
 
     Value evaluate(const Position& pos);
     bool load_eval(std::string name, std::istream& stream);
+    bool save_eval(std::ostream& stream);
     void init();
-    void export_net();
+    void export_net(const std::optional<std::string>& filename);
     void verify();
 
   } // namespace NNUE