Apply the hyperbolic tangent activation element-wise.
Implement solve(x).
Returns. Return a float NumPy array of the same shape with values in (−1,1).
Example 1
Input:
solve([-2.0, 0.0, 2.0])
Output:
[-0.964028, 0.0, 0.964028]
Example 2
Input:
solve([20.0, -20.0])
Output:
[1.0, -1.0]
No results yet
Run your code to check it against the examples, or submit to run every test.