LeelaChessZero / lc0

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

Add option to set IR version of ONNX file with leela2onnx command #2036

Open dje-dev opened 1 month ago

dje-dev commented 1 month ago

Some tools expect a particular IR version (e.g. 8) rather than the current default as written by the converter utility, so an option to set this version would be helpful. Currently version 4 is hardcoded in the member initialization list for OnnxBuilder.