Skip to content

Can I use Float32 with hls4ml? #659

Answered by vloncar
AnouarITI asked this question in Q&A
Discussion options

You must be logged in to vote

Not at the moment. This used to be possible with some caveats, but was not implemented in the newer codebase. Perhaps in the future. What you can do is manually change the precision data types in the generated defines.h and parameters.h files, but you may run into issues with some layers (pooling comes to mind, perhaps others). I hope you have a strong incentive for doing this because floating-point operations on FPGAs come with lots of issues related to latency. Quantization is the way to go.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnouarITI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants