fastmachinelearning / hls4ml

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

Support Constant nodes in pytorch parser #1123

Open JanFSchulte opened 1 week ago

JanFSchulte commented 1 week ago

Fixes https://github.com/fastmachinelearning/hls4ml/issues/1082.

Constants, for example for multiplications, are recognized and added to the hls4ml model using the Constant layer introduced in the QONNX parser. Thanks to @sei-jgwohlbier for finding the issue and designing the fix.

Type of change

For a new feature or function, please create an issue first to discuss it with us before submitting a pull request.

Note: Please delete options that are not relevant.

Tests

Checklist