Make TanH cleaner, more efficient, and possible to use in-place
Merge pull request #475 from jeffdonahue/tanh-fixes

Make TanH cleaner, more efficient, and possible to use in-place