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;