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
+ else if (token == "export_net") {
+ std::optional<std::string> filename;
+ std::string f;
+ if (is >> skipws >> f) {
+ filename = f;
+ }
+ Eval::NNUE::export_net(filename);
+ }
+ else if (!token.empty() && token[0] != '#')
sync_cout << "Unknown command: " << cmd << sync_endl;
} while (token != "quit" && argc == 1); // Command line args are one-shot