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

Improve Test Vector Generation #8

Merged
merged 4 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[change] Remove outdated comment
  • Loading branch information
Xeratec committed Oct 30, 2024
commit 9f5eb559138a10c6a04af85ee647c4ee63ae7a9f
2 changes: 0 additions & 2 deletions PyITA/softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ def streamingPartialSoftmax(x, integerize = True):

## STAGE 2: Calculate the softmax activation
# Invert the partial sum
# WIESEP: Scale Softmax to 127
# The Softmax values are maximum 127 as sumdotp modules can only do signed-signed operations for now. This is a temporary fix until sumdotp is fixed.
if integerize:
exp_partial_sum_inverse = np.floor((2**8 - 1) * 2**8 / exp_partial_sum).astype(np.int32)
else:
Expand Down
Loading