Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to threshold's width optimization #866

Merged
merged 6 commits into from
Aug 4, 2023

Conversation

mmrahorovic
Copy link
Collaborator

The width of the thresholds are based on the width of the input datatype and threshold datatype. The input datatype is in most cases coming from an MVU, which will have by default a 32-bit output datatype. Since the MinimizeAccumulatorWidth is applied iteratively in a loop, the output datatype of the MVU is optimized/minimized before the Thresholding_Batch layer is considered. However, we need to run the InferDataTypes transformation to propagate this information such that the succeeding Thresholding_Batch knows of the minimized bit-width of the input (and does not default to 32-bit thresholds).

@auphelia auphelia marked this pull request as ready for review August 4, 2023 15:45
@auphelia auphelia merged commit fd72d48 into Xilinx:dev Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants