About Softmax Layer

In softmax: 1/exp(-99999) -> 1/0 -> inf

then, set inf to 0

Is there a better solution?

I don’t fully understand the question so could you explain it a bit more, please?