Skip to content
Discussion options

You must be logged in to vote

Hello garaujo23!

The model that you linked include indeed a softmax in the end, so you don't need to apply it after, you can use the output right away.

Regarding the problem that you have in your softmax implementation (that is not needed in this case), you need to be careful as the output vector is an unsigned numpy array. Subtracting np.max(x) will make most of the values go in underflow, this then causes the overflow during the exp operation. You should convert the output array into a signed int before proceeding.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@garaujo23
Comment options

@Corallo
Comment options

Answer selected by Corallo
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