I am trying to implement the following softplus function:
log(1 + exp(x))
I've tried it with math/numpy and float64 as data type, but whenever x gets too large (e.g. x = 1000) the result is inf.
Can you assist me on how to successfully handle this function with large numbers?