Add generic support for LogSigmoid.

This has the same logic as Sigmoid; i.e.
math is done at double precision and then
stored back at desired precision.
5 files changed