Skip to content

Commit

Permalink
[Tests] Adjusting activation bias for narrow quantization
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed May 10, 2024
1 parent 88258ea commit 6cc148f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fpgadataflow/test_fpgadataflow_thresholding.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def test_fpgadataflow_thresholding(
activation_bias = 0
else:
activation_bias = activation.min()
if narrow:
activation_bias += 1

# Generate random thresholds and sort in ascending order
thresholds = generate_random_threshold_values(
Expand Down

0 comments on commit 6cc148f

Please sign in to comment.