Hyperbolic Tangent Forward Layer

The forward hyperbolic tangent layer computes the function

for the input argument x.

Problem Statement

Given a p-dimensional tensor X of size n 1 x n 2 x ... x n p , the problem is to compute the p-dimensional tensor Y = (y i 1 ...i p ) of size n 1 x n 2 x ... x n p such that:

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)