Yes, so is tanh(x)
, but the fast_tanh(x)
in the code is a lot faster, even at full accuracy, and as @oscardssmith said, it looks like we might get away with a lower accuracy version as well.
Yes, so is tanh(x)
, but the fast_tanh(x)
in the code is a lot faster, even at full accuracy, and as @oscardssmith said, it looks like we might get away with a lower accuracy version as well.