Fix bit overflow with softmax
Created by: calad0i
A# Description
📝 Please include a summary of the change.
- Please also include relevant motivation and context.
- List any dependencies that are required for this change.
Fix for #885 : softmax working with less than 10 bits of input/table size. Tested with Vivado/Vitis/quartus.
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.
-
Bug fix (non-breaking change that fixes an issue)
Tests
📝 Please describe the tests that you ran to verify your changes.
- Provide instructions so we can reproduce.
- Please also list any relevant details for your test configuration.
Test Configuration:
pytest/test_softmax.py
Checklist
-
I have read the guidelines for contributing. -
I have commented my code, particularly in hard-to-understand areas. -
I have made corresponding changes to the documentation. -
My changes generate no new warnings. - Raise a warning when the added fix is triggered. -
I have installed and run pre-commit
on the files I edited or added. -
I have added tests that prove my fix is effective or that my feature works.