fastmachinelearning / hls4ml

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

Fixed sign parsing for ac_fixed and ac_int #727

Closed jmitrevs closed 1 year ago

jmitrevs commented 1 year ago

Description

Previously 'ac_fixed<..>' and 'ac_int<..>' strings in the configuration were always parsed as signed. This fixes the issue

Type of change

Tests

I added a pytest to just directly call convert_precision_string and make sure that signed was correctly evaluated

Checklist

jmitrevs commented 1 year ago

I seem to have trouble initiating CI. Any suggestion?