]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Change trace with NNUE eval support
[stockfish] / src / uci.cpp
index bb17b8d79b21ab8cd3e13855bcd404f7b074d545..d5ffa2283197eaa73901620d971407106bb969d7 100644 (file)
@@ -277,13 +277,13 @@ void UCI::loop(int argc, char* argv[]) {
       else if (token == "d")        sync_cout << pos << sync_endl;
       else if (token == "eval")     trace_eval(pos);
       else if (token == "compiler") sync_cout << compiler_info() << sync_endl;
-      else if (token == "export_net") {
+      else if (token == "export_net")
+      {
           std::optional<std::string> filename;
           std::string f;
-          if (is >> skipws >> f) {
-            filename = f;
-          }
-          Eval::NNUE::export_net(filename);
+          if (is >> skipws >> f)
+              filename = f;
+          Eval::NNUE::save_eval(filename);
       }
       else if (!token.empty() && token[0] != '#')
           sync_cout << "Unknown command: " << cmd << sync_endl;