onnx2c icon indicating copy to clipboard operation
onnx2c copied to clipboard

Make generated float constant precision a command line option.

Open kraiskil opened this issue 1 year ago • 0 comments

Number of decimals printed for float constants is hard-coded to 20 in:
https://github.com/kraiskil/onnx2c/blob/87a548021c4da69ed7bc0ce4c7c41eaae0249282/src/main.cc#L25

The number of decimal points should be a command line option (with 20 being a good default).

kraiskil avatar Jan 02 '23 09:01 kraiskil