fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.29k stars 419 forks source link

add max_precision to onnx parser #1113

Closed jmitrevs closed 2 weeks ago

jmitrevs commented 2 weeks ago

Description

This is analogous to PR #1112 but for for ONNX. For ONNX, auto was the default, but max_precision was not set. This copies what we have for the Keras parser.

Type of change

Tests

We should make sure that this doesn't break anything, but truthfully, I am not sure if we have tests to test the max_precision behavior for any frontend, including Keras. Should we add such tests?

Checklist