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

@@ -143,22 +143,26 @@ For users, the following UCI options, which can typically be set via a GUI, are
For developers the following non-standard commands might be of interest, mainly useful for debugging:
* #### compiler
Give information about the compiler and environment used for building a binary.
* #### flip
Flips the side to move.
* #### bench ttSize threads limit fenFile limitType evalType
Performs a standard benchmark using various options. The signature or standard node
count is obtained using all defaults. `bench` is currently `bench 16 1 13 default depth mixed`.
* #### compiler
Give information about the compiler and environment used for building a binary.
* #### d
Display the current position, with ascii art and fen.
* #### eval
Return the evaluation of the current position.
* #### export_net
If the binary contains an embedded net, save it in a file (named according to the default value of EvalFile).
* #### flip
Flips the side to move.
## A note on classical evaluation versus NNUE evaluation
Both approaches assign a value to a position that is used in alpha-beta (PVS) search