Add an UCI level command "export_net".

This command writes the embedded net to the file `EvalFileDefaultName`.
If there is no embedded net the command does nothing.

fixes #3453

closes https://github.com/official-stockfish/Stockfish/pull/3454

No functional change
This commit is contained in:
Tomasz Sobczyk
2021-05-02 18:50:09 +02:00
committed by Joost VandeVondele
parent b1c8840f10
commit ca250e969c
4 changed files with 23 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ namespace Eval {
Value evaluate(const Position& pos);
bool load_eval(std::string name, std::istream& stream);
void init();
void export_net();
void verify();
} // namespace NNUE