LeelaChessZero / lc0

The rewritten engine, originally for tensorflow. Now all other backends have been ported here.
GNU General Public License v3.0
2.37k stars 523 forks source link

backend to "switch" to a different net for the endgame #1968

Open borg323 opened 5 months ago

borg323 commented 5 months ago

The net is switched when the number of pieces on board, excluding pawns and kings, reaches a threshold, 6 by default. The net to switch to is selected using the endgame_weights backend option. Also two subdictionaries are accepted in the backend options, namely main and endgame to allow using different backend options with the respective net. Unsurprisingly, the threshold is set using the threshold backend option.